QuickBooks Integrator 2020 Python Edition

Questions / Feedback?

BillPayment Class

Properties   Methods   Events   Configuration Settings   Errors  

The BILLPAYMENT class provides the functionality found in the Pay Bills form in the QuickBooks UI.

Syntax

class inqb.BillPayment

Remarks

The BillPayment class provides the functionality found in the Pay Bills form in the QuickBooks UI. You can reach this form by selecting Retail->Pay Bills from the main QuickBooks menubar. If you want to pay multiple bills, you must issue a separate request for each bill pay.

If you are using more than one Accounts payable account, make sure that the ap_account_id and/or ap_account_name matches the account that was used when the Bill was originally added. That is, the bill was entered in a particular account payable: use that same account payable when you pay the bill using this request.

You may use a credit card or check to make the billpayment by setting the payment_method property. If using a credit card, the credit_card_name or credit_card_id properties are required. If paying by check, the bank_account_name or bank_account_id properties are required, and you may optionally use the ref_number property to indicate the check number.

Required Fields (Add):payee_name, applied_to, payment_method, ref_number or is_to_be_printed, bank_account_name or bank_account_id (Checks), credit_card_name or credit_card_id (Credit Cards)

Supported Methods:add, get (Id), cancel, delete

Example:

BillPayment1.PayeeName = "Daigle Lighting"
BillPayment1.BankAccountName = "Checking"
BillPayment1.AppliedToCount = 1
BillPayment1.AppliedToRefId(0) = "5CAE-1197739628"
BillPayment1.AppliedToPaymentAmount(0) = "10.00"
BillPayment1.PaymentMethod = BillpaymentPaymentMethods.pmCheck
BillPayment1.IsToBePrinted = true    
BillPayment1.Add()
The class supports a variety of other operations as well. The class's get, cancel, and delete methods may be used to retrieve, cancel, and delete BILLPAYMENTSs, respectively. The ObjSearch Class may be used to search for BILLPAYMENTSs in the QuickBooks database.

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

addressAddress printed on the check.
amountAmount of transaction.
ap_account_idReference to the Accounts Payable account where money goes.
ap_account_nameReference to the Accounts Payable account.
applied_to_countThe number of records in the AppliedTo arrays.
applied_to_amountThe amount of the transaction that has just been paid.
applied_to_balance_remainingThe outstanding balance that has yet to be paid for the transaction indicated by RefId .
applied_to_credit_applied_amountAmount of a credit that is applied to a customer's bill.
applied_to_credit_memo_idThe ID of the credit memo that you are applying to this bill.
applied_to_discount_account_idRefers to the account where this discount is tracked.
applied_to_discount_account_nameRefers to the account where this discount is tracked.
applied_to_discount_amountReduces the receivable amount.
applied_to_payment_amountRepresents the amount assigned to a particular bill payment.
applied_to_ref_idRefers to the transaction Id of the bill that is being paid.
applied_to_ref_numberRefNumber of the transaction that was just paid.
applied_to_txn_dateDate of the transaction that has just been paid.
applied_to_txn_typeThe type of the transaction.
bank_account_idRefers to the account from which the funds are being drawn for this bill payment.
bank_account_nameRefers to the account from which the funds are being drawn for this bill payment.
credit_card_idRefers to the credit card account to which this payment is being charged.
credit_card_nameRefers to the credit card account to which this payment is being charged.
is_to_be_printedWhether this transaction is to be printed.
memoMemo to appear on internal reports only.
payee_idReference to entity from whom merchandise was purchased.
payee_nameReference to entity from whom merchandise was purchased.
payment_methodIndicates whether the Bill Payment is being made with a check or a credit card.
qb_connection_stringAn aggregate consisting of various QuickBooks connection properties.
qb_request_aggregateThe request aggregate.
qb_request_idThe Id of the next message to be sent to QuickBooks.
qb_request_modeDefines whether the request is made online or stored offline.
qb_response_aggregateThe last QBXML response aggregate received from QuickBooks.
qbxml_versionThe version of QBXML used in the outgoing message.
ref_idAn alphanumerical identifier generated by the server.
ref_numberReference number for the transaction.
transaction_dateDate of transaction.

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

addAdds the record into QuickBooks.
cancelCancels (voids) the transaction.
check_request_statusChecks whether or not the specified request was processed by QuickBooks.
close_qb_connectionCloses a persistent connection to QuickBooks.
configSets or retrieves a configuration setting.
deleteDeletes the record from QuickBooks.
getGets a single record from QuickBooks.
get_custom_fieldGets a custom field value from QuickBooks.
import_qbxmlImports a QBXML response aggregate.
open_qb_connectionOpens a persistent connection to QuickBooks.
resetResets all properties to their defaults.
set_custom_fieldSets a custom field value within QuickBooks.
updateUpdates the bill in QuickBooks.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

on_errorInformation about errors during data delivery.
on_ssl_server_authenticationFired after the server presents its certificate to the client.
on_ssl_statusShows the progress of the secure connection.
on_statusShows the progress of the QuickBooks connection.
on_warningFired when a warning occurs.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

AppliedToAggregate[index]Contains the XML aggregate of the AppliedTo element.
AuthFlagsConnection Flags (use for QuickBooks Simple Start).
EnforceMaxLengthIndicates whether to enforce max lengths for QB Fields.
GetHighestVersionHighest QBXMLVersion supported by the installed instance of QuickBooks.
GetRequestProcessorDLLVersionReturns the version of the QB Request Processor that is installed on your system.
GetSupportedVersionsReturns a list of QBXMLVersions that are supported by QuickBooks.
IsReadOnlyThis causes the QuickBooks authorization dialog to display text informing the user that its access will be read-only.
PersonalDataPrefWhether the connecting application will require access to personal data such as SSN or credit card information.
QBConnectionModeThe mode of connection to QuickBooks.
QBFileStatusThe status of the company file as it pertains to accepting connections.
QBOpenCompanyFileThe file currently open in QuickBooks.
SSLAcceptServerCertThe SSL certificate being used by the Remote Connector.
SSLAcceptServerCertFileThe SSL certificate file being used by the Remote Connector.
StopOnErrorSpecifies how QuickBooks is to proceed if an error occurs in processing of the current request.
UnattendedModePrefWhether connecting while QuickBooks is closed is required or optional for the user.
WarningCodesA comma-separated list of QuickBooks warning codes that should not result in an exception.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Python Edition - Version 20.0 [Build 7941]