{"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. 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.","properties":{"description":{"description":"What picking it does, for a line under the label.","example":"Try the add again under a name you choose.","nullable":true,"type":"string"},"detail":{"description":"A short second line about one item of a list: a candidate's list and why it matched, a transaction's date, customer and amount.","example":"Customer · similar name","nullable":true,"type":"string"},"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"}},"required":["id","label","description","detail","fields"],"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":{"description":{"type":"string"},"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":{"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, 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, 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"}},"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 gets a 401 Basic challenge with the plain-text body Unauthorized, not JSON.","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). `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`."}},"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`, 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":{"onboarding":{"description":"Send the user here to connect QuickBooks. `null` once used, or if never generated.","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.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. `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","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. 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"},"$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. Only \\$kind_name.","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)$)"}}}},"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 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.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.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 four. 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":{"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":{"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","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.","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":{"d