Skip to content

Postman docs › QuickBooks API (proxy) › Bill and BillPayment

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.

EntityWhat the collection doesNotes
BillCreate, read, query, full update, deleteIntuit does not document a void or a sparse update for Bill.
BillPaymentCreate, read, query, void, deleteVoid is ?operation=update&include=void.

Business rules: Bill

  • Create needs VendorRef and Line.
  • An account-based expense line needs DetailType AccountBasedExpenseLineDetail, Amount and AccountBasedExpenseLineDetail.AccountRef (an expense account). An item-based line uses ItemBasedExpenseLineDetail; without an ItemRef it "is treated as documentation and the Line.Amount attribute is ignored".
  • APAccountRef must 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.
  • DocNumber is not generated, and a duplicate is refused unless include=allowduplicatedocnum is 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 TaxCodeRef on each expense line. The collection uses the stored purchase tax code.

Business rules: BillPayment

  • Create needs VendorRef, TotalAmt, Line and PayType (Check or CreditCard).
    • Check needs CheckPayment.BankAccountRef: "The specified account must have Account.AccountType set to Bank and Account.AccountSubType set to Checking."
    • CreditCard needs CreditCardPayment.CCAccountRef, an account with AccountType Credit Card and AccountSubType CreditCard.
  • Each line carries Amount and a LinkedTxn (TxnType Bill, VendorCredit, JournalEntry or Deposit).
  • "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.

AttributeRequirementTypeDescription
Id* Required for updateread onlysystem definedString, filterableUnique id.
SyncToken* Required for updateread onlysystem definedStringVersion number for optimistic locking.
VendorRef* RequiredReferenceType, filterable{"value": "<Vendor.Id>"}. Required on update too.
Line* RequiredArrayAt least one expense line.
Line[].DetailType* RequiredStringAccountBasedExpenseLineDetail or ItemBasedExpenseLineDetail.
Line[].Amount* RequiredDecimalLine amount.
Line[].DescriptionOptionalStringLine text.
Line[].AccountBasedExpenseLineDetail.AccountRef* Required (account line)ReferenceTypeExpense account.
Line[].AccountBasedExpenseLineDetail.TaxCodeRef* Conditionally requiredReferenceTypePurchase tax code. Needed for non-US companies.
APAccountRefRecommendedReferenceType, filterableAccounts payable account.
PrivateNoteOptionalStringInternal note.
DueDateOptionalDate, filterableDue date.
TotalAmtread onlyDecimal, filterableBill total. The tests store it.
Balanceread onlyDecimal, filterableAmount still unpaid.

The BillPayment object ​

AttributeRequirementTypeDescription
Id* Required for updateread onlysystem definedStringUnique id.
SyncToken* Required for updateread onlysystem definedStringVersion number for optimistic locking.
VendorRef* RequiredReferenceTypeThe vendor being paid.
PayType* RequiredStringCheck or CreditCard.
CheckPayment.BankAccountRef* Conditionally required (Check)ReferenceTypeBank account, subtype Checking.
CreditCardPayment.CCAccountRef* Conditionally required (CreditCard)ReferenceTypeCredit card account.
TotalAmt* RequiredDecimalAmount paid. More than the lines total becomes a vendor credit.
Line* RequiredArrayOne line per bill paid.
Line[].Amount* RequiredDecimalAmount applied to the linked bill.
Line[].LinkedTxn* RequiredArray[{"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 ​

AttributeRequirementTypeDescription
VendorRef* RequiredReferenceType{"value": "{{vendor_id}}"}.
Line* RequiredArrayOne AccountBasedExpenseLineDetail line: Amount 80, AccountRef = expense_account_id, TaxCodeRef = purchase_tax_code_id.
PrivateNoteOptionalStringTest 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 URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/bill
Content typeapplication/json
Postman10. Bills & bill payments › Create bill
Storesbill_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 URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill/{{bill_id}}
Intuit operationGET/v3/company/<realmID>/bill/<billId>
Acceptapplication/json
Postman10. Bills & bill payments › Read bill
Storesbill_sync_token

Query a bill ​

Finds the test vendor's bills. The test needs at least one row.

Returns: QueryResponse.Bill[].

Request
Request URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from Bill where VendorRef = '{{vendor_id}}'
Intuit operationGET/v3/company/<realmID>/query?query=<selectStatement>
Acceptapplication/json
Postman10. 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 ​

AttributeRequirementTypeDescription
Id* Required for updateString{{bill_id}}.
SyncToken* Required for updateString{{bill_sync_token}}.
sparseOptionalBooleanfalse: a full update.
VendorRef* RequiredReferenceTypeSame vendor.
Line* RequiredArrayThe full line list. Lines you leave out are removed.
PrivateNoteOptionalStringNew note.
DueDateOptionalDate2026-12-31.

Returns ​

The updated Bill object. The test stores the new SyncToken.

Errors

FaultWhen
2020 "Required parameter VendorRef is missing"The update was sent as "sparse": true without VendorRef (seen on the sandbox).
Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/bill
Content typeapplication/json
Postman10. Bills & bill payments › Update bill (full)
Storesbill_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 ​

AttributeRequirementTypeDescription
VendorRef* RequiredReferenceType{"value": "{{vendor_id}}"}.
PayType* RequiredStringCheck.
CheckPayment.BankAccountRef* Conditionally requiredReferenceType{"value": "{{bank_account_id}}"}.
TotalAmt* RequiredDecimal{{bill_total}}, a number (no quotes).
Line* RequiredArrayOne 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 URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/billpayment
Content typeapplication/json
Postman10. Bills & bill payments › Create bill payment (cheque)
Storesbillpayment_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 URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment/{{billpayment_id}}
Intuit operationGET/v3/company/<realmID>/billpayment/<billpaymentId>
Acceptapplication/json
Postman10. Bills & bill payments › Read bill payment
Storesbillpayment_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 URLGET{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/query?query=select * from BillPayment where VendorRef = '{{vendor_id}}'
Intuit operationGET/v3/company/<realmID>/query?query=<selectStatement>
Acceptapplication/json
Postman10. 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 ​

AttributeRequirementTypeDescription
Id* RequiredString{{billpayment_id}}.
SyncToken* RequiredString{{billpayment_sync_token}}.
sparse* RequiredBooleantrue.

Returns ​

The voided BillPayment object. The test stores the new SyncToken.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?operation=update&include=void&requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/billpayment?operation=update&include=void
Content typeapplication/json
Postman10. Bills & bill payments › Void bill payment
Storesbillpayment_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 ​

AttributeRequirementTypeDescription
Id* RequiredString{{billpayment_id}}.
SyncToken* RequiredString{{billpayment_sync_token}}, the latest version (after the void).

Returns ​

A short status object. The test checks that BillPayment.status is Deleted.

Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/billpayment?operation=delete&requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/billpayment?operation=delete
Content typeapplication/json
Postman10. 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 ​

AttributeRequirementTypeDescription
Id* RequiredString{{bill_id}}.
SyncToken* RequiredString{{bill_sync_token}}.
Request
Request URLPOST{{base_url}}/api/v1/qbo/v3/company/{{realm_id}}/bill?operation=delete&requestid={{request_id}}
Intuit operationPOST/v3/company/<realmID>/bill?operation=delete
Content typeapplication/json
Postman10. Bills & bill payments › Read bill (refresh SyncToken), Delete bill
Storesbill_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"
}