The Invoices resource allows sales invoices to be listed and viewed. An individual sales invoice details can be viewed by appending its identifier (a GUID formatted as XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX) to the URI.
The full range of URIs and HTTP Verbs supported are:
Returns invoices that matches the specific customer code.
endDate
Returns invoices created before a specified date.
modifiedSince
Returns invoices created or edited after a specified date, must be UTC format.
invoiceNumber
Returns a single invoice with the specified invoice number. If set, it overrides all other filters.
invoiceStatus
Returns invoices with the specified status. Multiple selection can be specified as comma separated.For example: invoiceStatus=Completed,Parked. If no invoiceStatus filter is specified, then we exclude "Deleted" by default.
orderNumber
Returns the invoices associated with the Sales Order Number.
pageSize
Specifies the page size for pagination. Default page size is 200 invoices.
Note: Requesting large numbers of invoices can be susceptible to poor network performance. Please reduce the page size if you experience delayed requests.
serialBatch
False by default. If set to true then the attributes SerialNumbers and BatchNumbers are displayed.
startDate
Returns invoices created after a specified date.
Filters are used by adding the filter and value to the URI: /Invoices?customerCode=ACME&startDate=2012-01-01
Note: Date filters should be provided in the ISO format YYYY-MM-DD. The time zone is UTC.
Tip:To efficiently retrieve a count of the invoices that match a filter, specify a pageSize of 0: /Invoices?invoiceStatus=Parked,Placed&pageSize=0. The default invoicing is by LastModifiedOn descending.