CreditCardChargeExpenseItems
Handles QuickBooks Credit Card Charge Expense Line Items, supporting creation, updates, deletion, and detailed 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 CreditCardChargeExpenseItems 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 Expense Line Item columns can be used for inserting multiple Expense Line Items for a new CreditCardCharge transaction. For example, the following will insert a new CreditCardCharge with two Expense Line Items:
INSERT INTO CreditCardChargeExpenseItems#TEMP (AccountName, ExpenseAccount ExpenseAmount) VALUES ('CalOil Credit Card', 'Job Expenses:Job Materials', 52.25) INSERT INTO CreditCardChargeExpenseItems#TEMP (AccountName, ExpenseAccount ExpenseAmount) VALUES ('CalOil Credit Card', 'Automobile:Fuel', 235.87) INSERT INTO CreditCardChargeExpenseItems (AccountName, ExpenseAccount, ExpenseAmount) SELECT AccountName, ExpenseAccount, ExpenseAmount FROM CreditCardChargeExpenseItems#TEMP
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier for the expense line, formatted as CCChargeId|ItemLineId, combining the credit card charge and line item details. | |
CCChargeId | String | False | 255 |
The unique identifier of the credit card charge associated with this expense line. | |
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. | ||
ExpenseLineId | String | True | 255 |
The unique identifier of the specific expense line item. | |
ExpenseLineNumber | String | True | 255 |
The line number of this expense within the credit card charge transaction. | |
ExpenseAccount | String | False | 1000 |
The name of the account associated with this expense line. Either ExpenseAccount or ExpenseAccountId must be provided when inserting. | |
ExpenseAccountId | String | False |
Accounts.ID | 255 |
The unique identifier of the account associated with this expense line. Either ExpenseAccount or ExpenseAccountId must be provided when inserting. |
ExpenseAmount | Decimal | False |
The total amount of this specific expense line. | ||
ExpenseBillableStatus | String | False | 13 |
The billing status of this expense line, such as Billable or Non-Billable. The allowed values are Empty, Billable, NotBillable, HasBeenBilled. | |
ExpenseCustomer | String | False | 1000 |
The name of the customer associated with this expense line. | |
ExpenseCustomerId | String | False |
Customers.ID | 255 |
The unique identifier of the customer associated with this expense line. |
ExpenseClass | String | False | 1000 |
The name of the class associated with this expense line, used for categorization. | |
ExpenseClassId | String | False |
Class.ID | 255 |
The unique identifier of the class associated with this expense line. |
ExpenseMemo | String | False | 5000 |
A memo providing additional details about this specific expense line. | |
ExpenseTaxCode | String | False | 3 |
The tax code indicating whether this expense line is taxable or nontaxable. | |
ExpenseTaxCodeId | String | False | 255 |
The unique identifier of the tax code associated with this expense line. | |
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 credit card charge transaction. | ||
TimeCreated | Datetime | True |
The timestamp of when this credit card charge transaction was originally created. |