Update a bill
Updates an existing bill.
Authorizations
Your Conductor secret key using Bearer auth (e.g., "Authorization: Bearer {{YOUR_SECRET_KEY}}"
).
Headers
The ID of the EndUser to receive this request (e.g., "Conductor-End-User-Id: {{END_USER_ID}}"
).
Path Parameters
The QuickBooks-assigned unique identifier of the bill to update.
Body
The current revision number of the bill you are updating, which you can get by fetching the object first. Provide the most recent revisionNumber
to ensure you're working with the latest data; otherwise, the update will return an error.
The vendor who sent this bill for goods or services purchased.
The address of the vendor who sent this bill.
The Accounts-Payable (A/P) account to which this bill is assigned, used to track the amount owed. If not specified, QuickBooks Desktop will use its default Accounts-Payable account.
The date of this bill, in ISO 8601 format (YYYY-MM-DD).
The date by which this bill must be paid, in ISO 8601 format (YYYY-MM-DD).
The case-sensitive user-defined reference number for this bill, which can be used to identify the transaction in QuickBooks. This value is not required to be unique and can be arbitrarily changed by the QuickBooks user.
The bill's payment terms, defining when payment is due and any applicable discounts.
A memo or note for this bill, as entered by the user. Appears in the Accounts-Payable register and relevant reports.
The sales-tax code associated with this bill, determining whether it is taxable or non-taxable. It's used to assign a default tax status to all transactions for this bill. Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes can also be created in QuickBooks. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.
The market exchange rate between this bill's currency and the home currency in QuickBooks at the time of this transaction. Represented as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
When true
, removes all existing expense lines associated with this bill. To modify or add individual expense lines, use the field expenseLines
instead.
The bill's expense lines, each representing one line in this expense.
IMPORTANT: When updating a bill's expense lines, this array completely REPLACES all existing expense lines for that bill. To retain any current expense lines, include them in this array, even if they have not changed. Any expense lines not included will be removed. To add a new expense line, include it with its id
set to -1
. If you do not wish to modify the expense lines, you can omit this field entirely to keep them unchanged.
When true
, removes all existing item lines associated with this bill. To modify or add individual item lines, use the field itemLines
instead.
The bill's item lines, each representing the purchase of a specific item or service.
IMPORTANT: When updating a bill's item lines, this array completely REPLACES all existing item lines for that bill. To retain any current item lines, include them in this array, even if they have not changed. Any item lines not included will be removed. To add a new item line, include it with its id
set to -1
. If you do not wish to modify the item lines, you can omit this field entirely to keep them unchanged.
The bill's item group lines, each representing a predefined set of items bundled together because they are commonly purchased together or grouped for faster entry.
IMPORTANT: When updating a bill's item group lines, this array completely REPLACES all existing item group lines for that bill. To retain any current item group lines, include them in this array, even if they have not changed. Any item group lines not included will be removed. To add a new item group line, include it with its id
set to -1
. If you do not wish to modify the item group lines, you can omit this field entirely to keep them unchanged.
Response
A bill is a transaction that represents a request-for-payment from a vendor for goods or services that it has provided.
The unique identifier assigned by QuickBooks to this bill. This ID is unique across all transaction types.
The type of object. This value is always "qbd_bill"
.
"qbd_bill"
The date and time when this bill was created, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone in QuickBooks.
The date and time when this bill was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone in QuickBooks.
The current revision number of this bill, which changes each time the object is modified. When updating this object, you must provide the most recent revisionNumber
to ensure you're working with the latest data; otherwise, the update will return an error.
The vendor who sent this bill for goods or services purchased.
The address of the vendor who sent this bill.
The Accounts-Payable (A/P) account to which this bill is assigned, used to track the amount owed. If not specified, QuickBooks Desktop will use its default Accounts-Payable account.
The date of this bill, in ISO 8601 format (YYYY-MM-DD).
The date by which this bill must be paid, in ISO 8601 format (YYYY-MM-DD).
The total monetary amount due for this bill, represented as a decimal string. This equals the sum of the amounts in the bill's expense lines, item lines, and item group lines. It also equals openAmount
plus any credits or discounts.
The bill's currency. For built-in currencies, the name and code are standard international values. For user-defined currencies, all values are editable.
The market exchange rate between this bill's currency and the home currency in QuickBooks at the time of this transaction. Represented as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
The total amount due for this bill converted to the home currency of the QuickBooks company file. Represented as a decimal string.
The case-sensitive user-defined reference number for this bill, which can be used to identify the transaction in QuickBooks. This value is not required to be unique and can be arbitrarily changed by the QuickBooks user.
Indicates whether this bill is pending approval or completion. If true
, the bill is in a draft state and has not been finalized.
The bill's payment terms, defining when payment is due and any applicable discounts.
A memo or note for this bill, as entered by the user. Appears in the Accounts-Payable register and relevant reports.
The sales-tax code associated with this bill, determining whether it is taxable or non-taxable. It's used to assign a default tax status to all transactions for this bill. Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes can also be created in QuickBooks. If QuickBooks is not set up to charge sales tax (via the "Do You Charge Sales Tax?" preference), it will assign the default non-taxable code to all sales.
Indicates whether this bill has been paid in full. If true
, openAmount
will be 0.
A globally unique identifier (GUID) you can provide for tracking this object in your external system. Must be formatted as a valid GUID; otherwise, QuickBooks will return an error. This field is immutable and can only be set during object creation.
The bill's linked transactions, such as payments applied, credits used, or associated purchase orders. NOTE: You must specify the parameter includeLinkedTransactions
when fetching a list of bills to receive this field because it is not returned by default.
The bill's expense lines, each representing one line in this expense.
The bill's item lines, each representing the purchase of a specific item or service.
The bill's item group lines, each representing a predefined set of items bundled together because they are commonly purchased together or grouped for faster entry.
The remaining amount owed on this bill after subtracting any credits or discounts from the openAmount
. Represented as a decimal string.
The custom fields for the bill object, added as user-defined data extensions, not included in the standard QuickBooks object.