ODBC Driver for QuickBooks

Build 24.0.9175

CreditCardChargeLineItems

Manages individual line items associated with QuickBooks Credit Card Charges, including creation, updates, deletion, and queries.

Table Specific Information

CreditCardCharges may be inserted, queried, or updated via the CreditCardCharges, CreditCardChargeExpenseItems, or CreditCardChargeLineItems tables. CreditCardCharges may be deleted by using the CreditCardCharges table.

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 typically be used with only the equals or = comparison. The available columns for CreditCardCharges are Id, ReferenceNumber, Date, TimeModified, AccountName, and AccountId. 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 CreditCardChargeLineItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'

Insert

To add a CreditCardCharge, specify an Account and at least one Expense or Line Item. All Line Item columns can be used for inserting multiple Line Items for a new CreditCardCharge transaction. For example, the following will insert a new CreditCardCharge with two Line Items:

INSERT INTO CreditCardChargeLineItems#TEMP (AccountName, ItemName, ItemQuantity) VALUES ('CalOil Credit Card', '1/1/2011', 'Repairs', 1)
INSERT INTO CreditCardChargeLineItems#TEMP (AccountName, ItemName, ItemQuantity) VALUES ('CalOil Credit Card', '1/1/2011', 'Removal', 2)
INSERT INTO CreditCardChargeLineItems (AccountName, ItemName, ItemQuantity) SELECT AccountName, ItemName, ItemQuantity FROM CreditCardChargeLineItems#TEMP

Columns

Name Type ReadOnly References ColumnSize Description
ID [KEY] String True 255

The unique identifier for the line item, formatted as CCChargeId|ItemLineId, combining the credit card charge and line item details.

CCChargeId String False

CreditCardCharges.ID

255

The unique identifier for the credit card charge associated with this line item.

Date Date False

The date of the credit card charge transaction. If specified in the WHERE clause of a SELECT query, it overrides the pseudo columns StartDate and EndDate.

ReferenceNumber String False 21

The reference number for the credit card charge transaction, used for identification and tracking.

AccountName String False 1000

The name of the credit card account associated with this charge. Either AccountName or AccountId must be provided when inserting.

AccountId String False

Accounts.ID

255

The unique identifier of the credit card account associated with this charge. Either AccountName or AccountId must be provided when inserting.

Memo String False 5000

A memo providing additional details about this transaction, visible on internal reports only.

PayeeName String False 1000

The name of the payee associated with this credit card charge.

PayeeId String False

Vendors.ID

255

The unique identifier of the payee associated with this credit card charge.

IsTaxIncluded Boolean False

Indicates whether tax is included in the transaction amount. Available only in international editions of QuickBooks.

ItemLineId String True 255

The unique identifier for the specific line item.

ItemLineNumber String True 255

The line number of this item within the credit card charge transaction.

ItemName String False

The name of the item listed in this transaction.

ItemId String False

Items.ID

255

The unique identifier of the item listed in this transaction.

ItemGroup String False 100

The name of the item group this line item belongs to, if applicable.

ItemGroupId String False

Items.ID

255

The unique identifier of the item group this line item belongs to, if applicable.

ItemDescription String False 5000

A detailed description of the item listed in this transaction.

ItemQuantity Double False

The quantity of the item or item group specified in this line.

ItemUnitOfMeasure String False 100

The unit of measure for the item, selected from the available units. 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 of the item listed in this transaction.

ItemAmount Decimal False

The total amount for this item line, calculated as quantity multiplied by cost.

ItemBillableStatus String False 13

The billing status of the item, such as Billable or Non-Billable.

The allowed values are EMPTY, BILLABLE, NOTBILLABLE, HASBEENBILLED.

ItemCustomer String False 1000

The name of the customer associated with this item line.

ItemCustomerId String False

Customers.ID

255

The unique identifier of the customer associated with this item line.

ItemClass String False 1000

The name of the class associated with this item, used for categorization.

ItemClassId String False

Class.ID

255

The unique identifier of the class associated with this item.

ItemTaxCode String False 3

The tax code indicating whether this item is taxable or nontaxable.

ItemTaxCodeId String False

SalesTaxCodes.ID

255

The unique identifier of the tax code associated with this item.

ItemInventorySiteId String False

InventorySites.ID

31

The unique identifier of the inventory site where this item is stored. Requires QBXML Version 10.0 and the Advanced Inventory add-on.

ItemInventorySiteName String False 255

The name of the inventory site where this item is stored. Requires QBXML Version 10.0 and the Advanced Inventory add-on.

ItemInventorySiteLocationId String False 31

The unique identifier of the location within the inventory site for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on.

ItemInventorySiteLocationName String False 255

The name of the location within the inventory site for this item. Requires QBXML Version 10.0 and the Advanced Inventory add-on.

ItemExpirationDateForSerialLotNumber String True 1099

The expiration date for the serial or lot number associated with this item. Requires QBXML Version 16.0 or higher.

ExchangeRate Double False

The exchange rate used to convert this transaction's currency to the home currency of the QuickBooks company file.

TimeModified Datetime True

The timestamp of the last modification made to this transaction.

TimeCreated Datetime True

The timestamp of when this transaction was originally created.

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. Applicable only during inserts and updates.

ItemOverrideAccountId String

The unique identifier of the account used to override the default account for this item. Applicable only during inserts and updates.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 24.0.9175