IInvoiceCollection.QueryAsync(IQuery) Method

Definition

Asynchronously queries invoices associated to the partner.

public System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.Models.ResourceCollection<Microsoft.Store.PartnerCenter.Models.Invoices.Invoice>> QueryAsync (Microsoft.Store.PartnerCenter.Models.Query.IQuery query);
abstract member QueryAsync : Microsoft.Store.PartnerCenter.Models.Query.IQuery -> System.Threading.Tasks.Task<Microsoft.Store.PartnerCenter.Models.ResourceCollection<Microsoft.Store.PartnerCenter.Models.Invoices.Invoice>>
Public Function QueryAsync (query As IQuery) As Task(Of ResourceCollection(Of Invoice))

Parameters

query
IQuery

The invoice query. The QueryFactory can be used to build queries. Invoice queries support simple and indexed queries. You can retrieve subsets of invoices by providing an indexed query and specifying the index to start from and the page size to retrieve. You can also filter invoices using their dates. InvoiceSearchField lists the supported search fields. You can use the FieldFilterOperation enumeration to specify filtering operations. Supported filtering operations are: greater than, greater than or equals, less than, less than or equals, equals, and not equals. You can also compose compound filters that use the AND and OR field filter operations to retrieve a specific invoice subset.

Returns

The invoices that match the given query.

Applies to