VendorCreditLineItems
Manages individual line items in QuickBooks Vendor Credits, supporting creation, updates, deletion, and queries for detailed vendor credit tracking.
Table Specific Information
VendorCredits may be inserted, updated, or queried via the VendorCredits, VendorCreditExpenseItems, or VendorCreditLineItems tables. VendorCredits may be deleted by using the VendorCredits table.
This table has a Custom Fields column. See the Custom Fields page for more information.
Select
By default, SupportEnhancedSQL is set to true, and the following will be honored if present. Other filters will be executed client side. If SupportEnhancedSQL is set to false, only the following filters will be honored.
QuickBooks allows only a small subset of columns to be used in the WHERE clause of a SELECT query. These columns can only be used with the equals or = comparison. The available columns for the VendorCredits table are Id, Date, TimeModified, VendorName, VendorId, AccountsPayableId, and AccountsPayableName. TimeModified and Date may be used with the >, >=, <, <=, or = conditions and may be used twice to specify a range. ReferenceNumber may be used with the = or LIKE conditions to establish a starts-with, ends-with, or contains syntax. For example:
SELECT * FROM VenderCreditLineItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'
Insert
To add a VendorCredit, specify a Vendor and at least one Expense or Line Item. All Line Item columns can be used for inserting multiple Line Items for a new VendorCredit transaction. For example, the following will insert a new VendorCredit with two Line Items:
INSERT INTO VendorCreditLineItems#TEMP (VendorName, ItemName, ItemQuantity) VALUES ('A Cheung Limited', 'Repairs', 1) INSERT INTO VendorCreditLineItems#TEMP (VendorName, ItemName, ItemQuantity) VALUES ('A Cheung Limited', 'Removal', 2) INSERT INTO VendorCreditLineItems (VendorName, ItemName, ItemQuantity) SELECT VendorName, ItemName, ItemQuantity FROM VendorCreditLineItems#TEMP
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier of the vendor credit line item, formatted as VendorCreditId|ItemLineId to combine the vendor credit transaction ID and the line item ID. | |
VendorCreditId | String | False | 255 |
The unique identifier of the VendorCredit transaction associated with this line item. | |
VendorName | String | False | 1000 |
The name of the vendor for this transaction. Either VendorName or VendorId must be provided when inserting. | |
VendorId | String | False |
Vendors.ID | 255 |
The unique identifier of the vendor for this transaction. Either VendorName or VendorId must be provided when inserting. |
Date | Date | False |
The date of the transaction in the format YYYY-MM-DD. When specified in a WHERE clause, it overrides StartDate and EndDate pseudo columns. | ||
TxnNumber | Integer | True |
An identifying number for the transaction, different from the Quickbooks generated ID. | ||
ReferenceNumber | String | False | 21 |
The reference number assigned to this transaction, provided by the user or external system. | |
AccountsPayable | String | False | 1000 |
The name of the accounts-payable account associated with this transaction. | |
AccountsPayableId | String | False |
Accounts.ID | 255 |
The unique identifier of the accounts-payable account associated with this transaction. |
Amount | Decimal | True |
The total amount of the vendor credit transaction, including or excluding taxes based on the IsTaxIncluded field. | ||
Memo | String | False | 5000 |
A memo or note associated with the vendor credit transaction. | |
IsTaxIncluded | Boolean | False |
Indicates whether tax is included in the transaction amount. Valid values are true or false. | ||
TaxCode | String | False | 3 |
The sales tax code applied to this vendor credit. Represents the type of tax charged for the transaction. | |
TaxCodeId | String | False | 255 |
The unique identifier of the sales tax code applied to this vendor credit. | |
ExchangeRate | String | False |
The exchange rate used for the transaction if it involves foreign currency. | ||
ItemLineId | String | True | 255 |
The unique identifier for this specific line item within the VendorCredit transaction. | |
ItemLineNumber | String | True | 255 |
The line number for this item in the VendorCredit transaction. | |
ItemAmount | Decimal | False |
The total amount for this vendor credit line item. Must be a positive number. | ||
ItemClass | String | False | 1000 |
The class associated with this vendor credit line item, used for categorization or tracking purposes. | |
ItemClassId | String | False |
Class.ID | 255 |
The unique identifier of the class associated with this vendor credit line item. |
ItemTaxCode | String | False | 3 |
The tax code applied to this item, indicating whether it is taxable or non-taxable. | |
ItemTaxCodeId | String | False | 255 |
The unique identifier of the tax code applied to this item, indicating whether it is taxable or non-taxable. | |
ItemName | String | False |
The name of the item associated with this line. | ||
ItemId | String | False |
Items.ID | 255 |
The unique identifier of the item associated with this line. |
ItemGroup | String | False | 100 |
The name of the item group this item belongs to, if applicable. | |
ItemGroupId | String | False |
Items.ID | 255 |
The unique identifier of the item group this item belongs to, if applicable. |
ItemDescription | String | False | 5000 |
A description of the item associated with this line. | |
ItemQuantity | Double | False |
The quantity of the item or item group specified in this line. | ||
ItemUnitOfMeasure | String | False | 31 |
The unit of measure for this item. If the company file allows only a single unit of measure per item, this must be the base unit. Requires QBXML Version 7.0 or higher. | |
ItemCost | Double | False |
The unit cost for this item. | ||
ItemBillableStatus | String | False | 13 |
Indicates whether this item is billable to a customer. Valid values include Billable, NotBillable, and HasBeenBilled. 使用できる値は次のとおりです。EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED デフォルト値はEMPTYです。 | |
ItemCustomer | String | False | 1000 |
The name of the customer associated with this item, if applicable. | |
ItemCustomerId | String | False |
Customers.ID | 255 |
The unique identifier of the customer associated with this item, if applicable. |
ItemInventorySiteId | String | False | 31 |
The inventory site ID for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on. | |
ItemInventorySiteName | String | False | 255 |
The inventory site name for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on. | |
ItemInventorySiteLocationId | String | False | 31 |
The inventory site location ID for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on. | |
ItemInventorySiteLocationName | String | False | 255 |
The inventory site location name for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on. | |
ExpirationDateForSerialLotNumber | String | True | 1099 |
The expiration date for the serial or lot number of this item. Supported in QB Desktop 2023 Version 3 (USA & Canada) and SDK 16.0. | |
CustomFields | String | False |
Custom fields associated with this line item, returned from QuickBooks and formatted as XML. | ||
EditSequence | String | True | 16 |
An identifier for versioning this copy of the object. | |
TimeModified | Datetime | True |
The date and time when this vendor credit line item was last modified, in the format YYYY-MM-DD HH:MM:SS. | ||
TimeCreated | Datetime | True |
The date and time when this vendor credit line item was created, in the format YYYY-MM-DD HH:MM:SS. |
Pseudo-Columns
Pseudo Column fields are used in the WHERE clause of SELECT statements and offer a more granular control over the tuples that are returned from the data source.
Name | Type | Description |
ItemOverrideAccount | String |
The name of the account used to override the default account for this item. Only available during inserts and updates. |
ItemOverrideAccountId | String |
The ID of the account used to override the default account for this item. Only available during inserts and updates. |