Creates a query to retrieve a list of balances.
The Query Balances method builds a query to retrieve a list of balances and returns a BalancesQueryBuilder object.
The returned object contains the query definition, which is used to run the query using the find() method.
You can refine the query by chaining BalancesQueryBuilder methods onto the query. BalancesQueryBuilder methods enable you to filter, sort, and control the results that Query Balances returns.
Query Balances has a default paging limit of 50, which you can override.
For a full description of the item object, see the object returned for the items property in BalancesQueryResult.
| PROPERTY | SUPPORTED FILTERS & SORTING |
|---|---|
_id | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
_createdDate | eq(),ne(),exists(),in(),hasSome(),lt(),le(),gt(),ge(),ascending(),descending() |
beneficiary.memberId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
beneficiary.wixUserId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.