CreditCardCreditExpenseItems
Supports management of expense items associated with QuickBooks Credit Card Credits, including creation, updates, deletion, and queries.
Table Specific Information
CreditCardCredits may be inserted, queried, or updated via the CreditCardCredits, CreditCardCreditExpenseItems, or CreditCardCreditLineItems tables. CreditCardCredits may be deleted by using the CreditCardCredits 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 CreditCardCredits 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 CreditCardCreditExpenseItems WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'
Insert
To add a CreditCardCredit, 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 CreditCardCredit transaction. For example, the following will insert a new CreditCardCredit with two Expense Line Items:
INSERT INTO CreditCardCreditExpenseItems#TEMP (AccountName, ExpenseAccount, ExpenseAmount) VALUES ('CalOil Credit Card', 'Job Expenses:Job Materials', 52.25) INSERT INTO CreditCardCreditExpenseItems#TEMP (AccountName, ExpenseAccount, ExpenseAmount) VALUES ('CalOil Credit Card', 'Automobile:Fuel', 235.87) INSERT INTO CreditCardCreditExpenseItems (AccountName, ExpenseAccount, ExpenseAmount) SELECT AccountName, ExpenseAccount, ExpenseAmount FROM CreditCardCreditExpenseItems#TEMP
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier for the expense line, formatted as CCCreditId|ItemLineId, combining the credit card credit and line item details. | |
CCCreditId | String | False | 255 |
The unique identifier of the credit card credit transaction associated with this expense line. | |
Date | Date | False |
The date of the credit card credit 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 credit transaction, used for identification and tracking. | |
AccountName | String | False | 1000 |
The name of the credit card account associated with this credit. 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 credit. 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 credit. | |
PayeeId | String | False |
Vendors.ID | 255 |
The unique identifier of the payee associated with this credit card credit. |
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 credit 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 credit transaction. | ||
TimeCreated | Datetime | True |
The timestamp of when this credit card credit transaction was originally created. |