Theme
Bill and BillPayment
A bill records money the company owes a vendor. A bill payment pays one or more bills, by cheque from a bank account or by credit card. Both are transaction entities.
| Entity | What the collection does | Notes |
|---|---|---|
| Bill | Create, read, query, full update, delete | Intuit does not document a void or a sparse update for Bill. |
| BillPayment | Create, read, query, void, delete | Void is ?operation=update&include=void. |
Business rules: Bill
- Create needs
VendorRefandLine. - An account-based expense line needs
DetailTypeAccountBasedExpenseLineDetail,AmountandAccountBasedExpenseLineDetail.AccountRef(an expense account). An item-based line usesItemBasedExpenseLineDetail; without anItemRefit "is treated as documentation and the Line.Amount attribute is ignored". APAccountRefmust be a Liability / AccountsPayable account. "it is recommended that the AP Account be explicitly specified in all cases to prevent unexpected errors". The collection does not send it.- Update must be a full update. A sparse update is rejected with fault 2020 "Required parameter VendorRef is missing" (seen on the sandbox, 2026-12-01). Send every field you want to keep; writable fields you leave out are cleared.
DocNumberis not generated, and a duplicate is refused unlessinclude=allowduplicatedocnumis sent.- Delete: "You must unlink any linked transactions associated with the bill object before deleting it." Delete the bill payment first.
- Non-US companies need a
TaxCodeRefon each expense line. The collection uses the stored purchase tax code.
Business rules: BillPayment
- Create needs
VendorRef,TotalAmt,LineandPayType(CheckorCreditCard).CheckneedsCheckPayment.BankAccountRef: "The specified account must have Account.AccountType set to Bank and Account.AccountSubType set to Checking."CreditCardneedsCreditCardPayment.CCAccountRef, an account with AccountType Credit Card and AccountSubType CreditCard.
- Each line carries
Amountand aLinkedTxn(TxnTypeBill,VendorCredit,JournalEntryorDeposit). - "If TotalAmt is greater than the total on the lines being paid, the overpayment is treated as a credit... The total amount cannot be negative."
- Void: "The transaction remains active but all amounts and quantities are zeroed, all lines are cleared, and the string, Voided, is injected into BillPayment.PrivateNote".
- Intuit does not document a sparse update (other than void), PDF or send for BillPayment.
Postman folder: 10. Bills & bill payments. Intuit reference: Bill · BillPayment.
The Bill object
Fields the collection uses. The full attribute list is in Intuit's reference.
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String, filterable | Unique id. |
SyncToken | * Required for update | String | Version number for optimistic locking. |
VendorRef | * Required | ReferenceType, filterable | {"value": "<Vendor.Id>"}. Required on update too. |
Line | * Required | Array | At least one expense line. |
Line[]. | * Required | String | AccountBasedExpenseLineDetail or ItemBasedExpenseLineDetail. |
Line[]. | * Required | Decimal | Line amount. |
Line[]. | Optional | String | Line text. |
Line[]. | * Required (account line) | ReferenceType | Expense account. |
Line[]. | * Conditionally required | ReferenceType | Purchase tax code. Needed for non-US companies. |
APAccountRef | Recommended | ReferenceType, filterable | Accounts payable account. |
PrivateNote | Optional | String | Internal note. |
DueDate | Optional | Date, filterable | Due date. |
TotalAmt | Decimal, filterable | Bill total. The tests store it. | |
Balance | Decimal, filterable | Amount still unpaid. |
The BillPayment object
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | Unique id. |
SyncToken | * Required for update | String | Version number for optimistic locking. |
VendorRef | * Required | ReferenceType | The vendor being paid. |
PayType | * Required | String | Check or CreditCard. |
CheckPayment. | * Conditionally required (Check) | ReferenceType | Bank account, subtype Checking. |
CreditCardPayment. | * Conditionally required (CreditCard) | ReferenceType | Credit card account. |
TotalAmt | * Required | Decimal | Amount paid. More than the lines total becomes a vendor credit. |
Line | * Required | Array | One line per bill paid. |
Line[]. | * Required | Decimal | Amount applied to the linked bill. |
Line[]. | * Required | Array | [{"TxnId": "<Bill.Id>", "TxnType": "Bill"}]. |
Create a bill
Creates an 80.00 bill from the test vendor, with one account-based expense line.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
VendorRef | * Required | ReferenceType | {"value": "{{vendor_id}}"}. |
Line | * Required | Array | One AccountBasedExpenseLineDetail line: Amount 80, AccountRef = expense_account_id, TaxCodeRef = purchase_tax_code_id. |
PrivateNote | Optional | String | Test marker. |
Returns
The new Bill object. The test stores Id, SyncToken and TotalAmt.
As with invoices, TotalAmt can differ from the line amounts when tax is added, so the bill payment uses the stored bill_total.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/bill |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Create bill |
| Stores | bill_id, bill_sync_token, bill_total |
Request body
json
{
"VendorRef": {
"value": "{{vendor_id}}"
},
"Line": [
{
"DetailType": "AccountBasedExpenseLineDetail",
"Amount": 80,
"Description": "QBO Connect Postman test",
"AccountBasedExpenseLineDetail": {
"AccountRef": {
"value": "{{expense_account_id}}"
},
"TaxCodeRef": {
"value": "{{purchase_tax_code_id}}"
}
}
}
],
"PrivateNote": "QBO Connect Postman test"
}Returns (abridged)
json
{
"Bill": {
"Id": "152",
"SyncToken": "0",
"VendorRef": {
"value": "71"
},
"Line": [
{
"DetailType": "AccountBasedExpenseLineDetail",
"Amount": 80,
"AccountBasedExpenseLineDetail": {
"AccountRef": { "value": "7" },
"TaxCodeRef": { "value": "5" }
}
}
],
"TotalAmt": 90.4,
"Balance": 90.4
},
"time": "2026-12-01T02:26:00.000-08:00"
}Read a bill
Retrieves one Bill object. The test refreshes bill_sync_token.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill/{{bill_id}} |
| Intuit operation | GET/v3/company/<realmID>/bill/<billId> |
| Accept | application/json |
| Postman | 10. Bills & bill payments › Read bill |
| Stores | bill_sync_token |
Query a bill
Finds the test vendor's bills. The test needs at least one row.
Returns: QueryResponse.Bill[].
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from Bill where VendorRef = '{{vendor_id}}' |
| Intuit operation | GET/v3/company/<realmID>/query?query=<selectStatement> |
| Accept | application/json |
| Postman | 10. Bills & bill payments › Query bills by vendor |
Update a bill
A full update: the body repeats VendorRef and the lines, and sets "sparse": false. It changes the private note and adds a due date.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required for update | String | {{bill_id}}. |
SyncToken | * Required for update | String | {{bill_sync_token}}. |
sparse | Optional | Boolean | false: a full update. |
VendorRef | * Required | ReferenceType | Same vendor. |
Line | * Required | Array | The full line list. Lines you leave out are removed. |
PrivateNote | Optional | String | New note. |
DueDate | Optional | Date | 2026-12-31. |
Returns
The updated Bill object. The test stores the new SyncToken.
Errors
| Fault | When |
|---|---|
| 2020 "Required parameter VendorRef is missing" | The update was sent as "sparse": true without VendorRef (seen on the sandbox). |
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/bill |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Update bill (full) |
| Stores | bill_sync_token |
Request body
json
{
"Id": "{{bill_id}}",
"SyncToken": "{{bill_sync_token}}",
"sparse": false,
"VendorRef": {
"value": "{{vendor_id}}"
},
"Line": [
{
"DetailType": "AccountBasedExpenseLineDetail",
"Amount": 80,
"Description": "QBO Connect Postman test",
"AccountBasedExpenseLineDetail": {
"AccountRef": {
"value": "{{expense_account_id}}"
},
"TaxCodeRef": {
"value": "{{purchase_tax_code_id}}"
}
}
}
],
"PrivateNote": "Updated by QBO Connect Postman test",
"DueDate": "2026-12-31"
}Create a bill payment
Pays the bill in full by cheque from the bank account that 2. Accounts › Query bank accounts stored. TotalAmt and the line Amount are the stored bill_total.
That query takes the first active account with AccountType = 'Bank'. Intuit asks for subtype Checking; if your company's first bank account has another subtype, put a Checking account's id in bank_account_id.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
VendorRef | * Required | ReferenceType | {"value": "{{vendor_id}}"}. |
PayType | * Required | String | Check. |
CheckPayment. | * Conditionally required | ReferenceType | {"value": "{{bank_account_id}}"}. |
TotalAmt | * Required | Decimal | {{bill_total}}, a number (no quotes). |
Line | * Required | Array | One line: Amount = {{bill_total}}, LinkedTxn = the bill. |
Returns
The new BillPayment object. The test stores BillPayment.Id in billpayment_id and BillPayment.SyncToken in billpayment_sync_token.
In the collection, TotalAmt and Amount are written as {{bill_total}} without quotes, so the body is valid JSON only after Postman replaces the variable.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/billpayment |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Create bill payment (cheque) |
| Stores | billpayment_id, billpayment_sync_token |
Request body (as sent, after Postman replaces the variables)
json
{
"VendorRef": {
"value": "71"
},
"PayType": "Check",
"CheckPayment": {
"BankAccountRef": {
"value": "35"
}
},
"TotalAmt": 90.4,
"Line": [
{
"Amount": 90.4,
"LinkedTxn": [
{
"TxnId": "152",
"TxnType": "Bill"
}
]
}
]
}Returns (abridged)
json
{
"BillPayment": {
"Id": "153",
"SyncToken": "0",
"VendorRef": {
"value": "71"
},
"PayType": "Check",
"TotalAmt": 90.4
},
"time": "2026-12-01T02:27:00.000-08:00"
}Read a bill payment
Retrieves one BillPayment object. The test refreshes billpayment_sync_token.
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment/{{billpayment_id}} |
| Intuit operation | GET/v3/company/<realmID>/billpayment/<billpaymentId> |
| Accept | application/json |
| Postman | 10. Bills & bill payments › Read bill payment |
| Stores | billpayment_sync_token |
Query a bill payment
Finds the test vendor's bill payments. The test needs at least one row.
Returns: QueryResponse.BillPayment[].
| Request | |
|---|---|
| Request URL | GET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from BillPayment where VendorRef = '{{vendor_id}}' |
| Intuit operation | GET/v3/company/<realmID>/query?query=<selectStatement> |
| Accept | application/json |
| Postman | 10. Bills & bill payments › Query bill payments by vendor |
Void a bill payment
Keeps the bill payment with its amounts zeroed and its lines cleared. The body is a sparse update with only Id and SyncToken; the include=void query parameter, sent with operation=update, does the voiding.
The official PHP SDK sends ?operation=void for BillPayment instead. The collection follows Intuit's reference; whether ?operation=void also works is not verified.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required | String | {{billpayment_id}}. |
SyncToken | * Required | String | {{billpayment_sync_token}}. |
sparse | * Required | Boolean | true. |
Returns
The voided BillPayment object. The test stores the new SyncToken.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?operation=update&include=void&requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/billpayment?operation=update&include=void |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Void bill payment |
| Stores | billpayment_sync_token |
Request body
json
{
"Id": "{{billpayment_id}}",
"SyncToken": "{{billpayment_sync_token}}",
"sparse": true
}Returns (abridged)
json
{
"BillPayment": {
"Id": "153",
"SyncToken": "1",
"TotalAmt": 0
},
"time": "2026-12-01T02:28:00.000-08:00"
}Delete a bill payment
Deletes the bill payment permanently. This unlinks it from the bill, so the bill can be deleted next.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required | String | {{billpayment_id}}. |
SyncToken | * Required | String | {{billpayment_sync_token}}, the latest version (after the void). |
Returns
A short status object. The test checks that BillPayment.status is Deleted.
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?operation=delete&requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/billpayment?operation=delete |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Delete bill payment |
Request body
json
{
"Id": "{{billpayment_id}}",
"SyncToken": "{{billpayment_sync_token}}"
}Returns
json
{
"BillPayment": {
"status": "Deleted",
"domain": "QBO",
"Id": "153"
},
"time": "2026-12-01T02:29:00.000-08:00"
}Delete a bill
The bill can have a newer SyncToken after the bill payment was linked and removed, so Read bill (refresh SyncToken) stores the current one first. Then Delete bill deletes it. The test checks that Bill.status is Deleted.
Request body
| Attribute | Requirement | Type | Description |
|---|---|---|---|
Id | * Required | String | {{bill_id}}. |
SyncToken | * Required | String | {{bill_sync_token}}. |
| Request | |
|---|---|
| Request URL | POST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?operation=delete&requestid={{request_id}} |
| Intuit operation | POST/v3/company/<realmID>/bill?operation=delete |
| Content type | application/json |
| Postman | 10. Bills & bill payments › Read bill (refresh SyncToken), Delete bill |
| Stores | bill_sync_token (from the read) |
Request body
json
{
"Id": "{{bill_id}}",
"SyncToken": "{{bill_sync_token}}"
}Returns
json
{
"Bill": {
"status": "Deleted",
"domain": "QBO",
"Id": "152"
},
"time": "2026-12-01T02:29:30.000-08:00"
}