CreditCardCredits
Manages QuickBooks Credit Card Credits, allowing users to create, update, delete, and query credit transactions for accurate accounting.
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.
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 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 CreditCardCredits 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. The ItemAggregate and ExpenseAggregate columns may be used to specify an XML aggregate of Line or Expense Item data. The columns that may be used in these aggregates are defined in the CreditCardCreditLineItems and CreditCardCreditExpenseItems tables and it starts with Item and Expense. For example, the following will insert a new CreditCardCredit with two Line Items:
INSERT INTO CreditCardCredits (AccountName, ItemAggregate) VALUES ('CalOil Credit Card', '<CreditCardCreditLineItems> <Row><ItemName>Repairs</ItemName><ItemQuantity>1</ItemQuantity></Row> <Row><ItemName>Removal</ItemName><ItemQuantity>2</ItemQuantity></Row> </CreditCardCreditLineItems>')To insert subitems, set the ItemName field to the FullName of the item; for example, '<Row><ItemName>Subs:Carpet</ItemName><ItemQuantity>0</ItemQuantity></Row>'
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier of the credit card credit transaction in QuickBooks. | |
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. | ||
ItemCount | Integer | True |
The total number of line items associated with this credit card credit. | ||
ItemAggregate | String | False | 5000 |
An aggregate of line item data used to add a credit card credit and its line items in a single operation. | |
ExpenseItemCount | Integer | True |
The total number of expense line items associated with this credit card credit. | ||
ExpenseItemAggregate | String | False | 5000 |
An aggregate of expense item data used to add a credit card credit and its expense items in a single operation. | |
CustomFields | String | False |
Custom fields returned from QuickBooks, formatted as XML. | ||
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. | ||
TxnNumber | Integer | True |
A manually assigned transaction number to identify this credit separately from the Quickbooks generated ID. |
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 |
Item* | String |
Represents all line-item-specific columns that can be used during insertion to specify line item details for this credit card credit. |
Expense* | String |
Represents all expense-item-specific columns that can be used during insertion to specify expense item details for this credit card credit. |