BillPaymentCreditCards
Manages QuickBooks Bill Payments made via credit cards, including creation, updates, deletion, and queries.
Table Specific Information
BillPaymentCreditCards may be inserted, queried, or updated via the BillPaymentCreditCards or BillPaymentCreditCardsAppliedTo tables. BillPaymentCreditCards may be deleted by using the BillPaymentCreditCards 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 BillPaymentCreditCards are Id, Date, ReferenceNumber, PayeeName, PayeeId, AccountsPayable, AccountsPayableId, and TimeModified. 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 BillPaymentCreditCards WHERE TimeModified > '1/1/2011' AND TimeModified < '2/1/2011' AND ReferenceNumber LIKE '%12345%'
Insert
To add a BillPaymentCreditCard, specify a Payee and CreditCard. The Payee must match the Vendor associated with the Bill you are adding a payment for. The AppliedToAggregate column may be used to specify an XML aggregate of AppliedTo data. The columns that may be used in these aggregates are defined in the BillPaymentCreditCardsAppliedTo table and it starts with AppliedTo. For example, the following will insert a new BillPaymentCreditCard with two AppliedTo entries:
INSERT INTO BillPaymentCreditCard (PayeeName, CreditCardName, AppliedToAggregate) VALUES ('Vu Contracting', 'CalOil Credit Card', '<BillPaymentCreditCardsAppliedTo> <Row><AppliedToRefId>178C1-1450221347</AppliedToRefId><AppliedToAmount>20.00</AppliedToAmount></Row> <Row><AppliedToRefId>881-933371709</AppliedToRefId><AppliedToAmount>51.25</AppliedToAmount></Row> </BillPaymentCreditCardsAppliedTo>')
AppliedToRefId is a reference to a BillId and can be found in Bills, BillLineItems, or BillExpenseItems.
Columns
Name | Type | ReadOnly | References | ColumnSize | Description |
ID [KEY] | String | True | 255 |
The unique identifier for the bill payment transaction. | |
PayeeName | String | False | 1000 |
The name of the entity (such as a vendor) to whom the payment is being made. Either PayeeId or PayeeName is required. | |
PayeeId | String | False |
Vendors.ID | 255 |
The unique identifier for the entity (such as a vendor) to whom the payment is being made. Either PayeeId or PayeeName is required. |
ReferenceNumber | String | False | 21 |
The reference number for the transaction, used for identification and tracking. | |
TxnNumber | Int | True |
A manually assigned transaction number for identifying this payment separately from the Quickbooks generated ID. | ||
Date | Date | False |
The date of the transaction. If specified in the WHERE clause of a SELECT query, it overrides the pseudo columns StartDate and EndDate. | ||
Amount | Decimal | True |
The total amount of the bill payment. This value is calculated by QuickBooks based on the associated line items or expense line items. | ||
AccountsPayable | String | False | 1000 |
The name of the accounts payable account associated with this transaction. | |
AccountsPayableId | String | False |
Accounts.ID | 255 |
The unique identifier for the accounts payable account associated with this transaction. |
CreditCardName | String | False | 1000 |
The name of the credit card account this payment is charged to. Applicable only for credit card payment methods. | |
CreditCardId | String | False | 255 |
The unique identifier for the credit card account this payment is charged to. Applicable only for credit card payment methods. | |
Memo | String | False | 5000 |
A memo or note associated with the transaction, visible on internal reports. | |
AppliedToAggregate | String | False | 5000 |
An aggregate of data showing which bills the payment is applied to. Used for adding a bill payment credit card and its associated data. | |
ExchangeRate | Double | False |
The currency exchange rate used to convert this payment's currency to the company's home currency. | ||
AmountInHomeCurrency | Double | True |
The total amount of the payment converted to the company's home currency. | ||
CustomFields | String | False |
Custom fields returned from QuickBooks, formatted as XML. | ||
TimeModified | Datetime | True |
The timestamp of the last modification made to this bill payment. | ||
TimeCreated | Datetime | True |
The timestamp of when this bill payment 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 |
AppliedTo* | String |
Represents all applied-to-specific columns that can be used during insertion to specify details about which bills the payment applies to. |