QuickBooks [where] parameter
To filter data that you want to fetch from QuickBooks, you can use the Where parameter field:

With the Where parameter, it's possible to, for example, fetch only Invoices with an amount higher than X, updated after a specific date, etc. To use the Where parameter correctly, please check the following materials:
The syntax for the Where parameter
The structure for the Where parameter is as follows:
The simplest example:

In this example:
Id - the name of the data entity field
= - operator
'30' - value to compare with
Filtering by multiple parameters is supported by AND
Example:
The OR operation isn’t supported.
Available operators are: >, <, =, >=, <=, IN, LIKE. Not all operators, however, can be used with every type of data entity field:
String
>, <, =, >=, <=, IN, LIKE
ReferenceType
=, IN, LIKE
Boolean
=, IN
TypeEnum
=, IN, LIKE
Decimal
>, <, =, >=, <=, IN
BigDecimal
>, <, =, >=, <=, IN
IdType
>, <, =, >=, <=, IN
Date
>, <, =, >=, <=, IN
Fields supported in the where parameter for each QB data entity
Account
Id
Name
Description
Classification
FullyQualifiedName
AccountSubType
String
ParentRef
ReferenceType
Active
SubAccount
Boolean
AccountType
AccountTypeEnum
CurrentBalance
CurrentBalanceWithSubAccounts
Decimal
Attachable
Id
IdType
FileName
Note
Category
ContentType
PlaceName
Long
Tag
Lat
ThumbnailTempDownloadUri
String
Size
Decimal
Bill
Id
DocNumber
String
VendorRef
APAccountef
SalesTermRef
ReferenceType
TxnDate
DueDate
MetaData.CreateTime
MetaData.LastUpdatedTime
Date
TotalAmt
BigDecimal
Balance
Decimal
Billpayment
Id
DocNumber
String
VendorRef
APAccountRef
ReferenceType
TotalAmt
BigDecimal
TxnDate
Date
Budget
FullyQualifiedName Id
Name
String
BudgetType
BudgetTypeEnum
Active
Boolean
Class
Id
FullyQualifiedName
String
Active
Boolean
MetaData
ModificationMetaData
CompanyInfo
Id
String
CreditMemo
Id
DocNumber
String
SalesTermRef
CustomerRef
ReferenceType
TxnDate
Date
Balance
Decimal
Customer
Id
FullyQualifiedName
PrintOnCheckName
PrimaryEmailAddr
DisplayName
GivenName
MiddleName
FamilyName
CompanyName
String
Active
Boolean
Balance
Decimal
MetaData.CreateTime
Date
Department
Active
Boolean
MetaData
ModificationMetaData
Id
FullyQualifiedName
String
Deposit
Id
String
TxnDate
Date
Employee
Id
DisplayName
GivenName
MiddleName
Suffix
FamilyName
PrintOnCheckName
String
Active
Boolean
Estimate
Id
DocNumber
String
CustomerRef
ReferenceType
TxnDate
DueDate
Date
Exchangerate
AsOfDate
Boolean
SourceCurrencyCode
String
MetaData
ModificationMetaData
Invoice
Id
DocNumber
String
CustomerRef
SalesTermRef
ReferenceType
TxnDate
DueDate
Date
Balance
Decimal
Item
Id
IdType
Name
Type
Sku
FullyQualifiedName
String
Active
Boolean
JournalEntry
Id
DocNumber
String
TxnDate
Date
JournalCode
Id
IdType
MetaData
ModificationMetaData
Payment
Id
PaymentRefNum
String
CustomerRef
ReferenceType
TxnDate
Date
PaymentMethod
Id
String
Active
Boolean
Preferences
No fields are supported in the Where parameter.
Purchase
Id
DocNumber
String
TxnDate
Date
PurchaseOrder
Id
DocNumber
String
TxnDate
DueDate
Date
RefundReceipt
Id
DocNumber
String
TxnDate
Date
CustomerRef
ReferenceType
PaymentType
PaymentTypeEnum
Balance
Decimal
SalesReceipt
Id
DocNumber
String
CustomerRef
ReferenceType
TxnDate
Date
TotalAmt
BigDecimal
Balance
Decimal
TaxAgency
Id
String
TaxCode
Id
Name
String
Active
Boolean
Description
String
TaxRate
Id
Name
Description
String
AgencyRef
TaxReturnLineRef
ReferenceType
Active
Boolean
Term
Id
Name
String
Active
Boolean
TimeActivity
Id
String
TxnDate
Date
BillableStatus
BillableStatusEnum
Transfer
Id
String
TxnDate
Date
Vendor
Id
GivenName
MiddleName
Suffix
FamilyName
DisplayName
CompanyName
PrintOnCheckName
String
Active
Boolean
Balance
Decimal
VendorCredit
Id
DocNumber
String
APAccountRef
ReferenceType
TxnDate
Date
TotalAmt
BigDecimal
Detailed examples of Where parameter usage
Examples with String type:
Parameters with Boolean type:
Parameters with ReferenceType type:
To define the Id of the reference entity (i.e. Vendor (Supplier)):
Login to QuickBooks Online.
Navigate to the Expenses Suppliers tab.
Open the needed Supplier.
Copy the id from the URL: https://monosnap.com/file/RrQPdj21a76SfFufgQegij4LBmskt0.
Parameters with AccountTypeEnum, PaymentTypeEnum types:
Parameters with IdType, Decimal, BigDecimal types:
Parameters with Date type:
The date parameter supports macros. To check which macros are supported, visit: How to use macros in Coupler.io?
Parameters with ModificationMetaData type:
ModificationMetaData is splitted into 2 columns with Date type: MetaData.CreateTime and Data.LastUpdatedTime
Last updated
Was this helpful?
