Get sales invoices filtered and paged
- 23 May 2025
- 3 Minutes to read
- Print
- DarkLight
Get sales invoices filtered and paged
- Updated on 23 May 2025
- 3 Minutes to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback!
Post
/api/v1/invoices/salesinvoice/filter
[PREVIEW] Get a paged list of existing sales invoices, optionally filtered to the given parameters.
Description
Retrieve a paged list of existing sales invoices, filtered to the given parameters.
Use Case
The user needs to identify which sales invoices are currently registered in Bloxs. For example, they may want to retrieve only overdue invoices to initiate payment reminders or debt collection procedures. Alternatively, they may wish to display a specific customer’s open invoices in a portal or during support interactions, using the customer ID as a filter.
Request fields
The request contains the following fields:
Field | Description |
---|---|
paging.pageSize | The maximum number of pages to be returned per request. The default number is 100 and the maximum is 1.000. If more results are returned than specified in the PageSize, the remaining pages are dropped based on the reference (number). |
paging.pageNumber | This allows the requesting party to specify which of the pages they want to receive. |
sorting.columnName | The data field based on which sorting is applied. For example, if the results are sorted based on ascending name, columnName will contain the value 'name'. |
sorting.order | Based on this value, the property defined in 'columnName' is either sorted ascending (a-z) or descending (z-a). |
filter.reference | This pertains to the reference of the specific sales invoice. This reference can be used to obtain further information regarding the invoice through the GET operation. |
filter.ownerReference | This pertains to the reference of the owner of the object. |
filter.relationReference | This is the reference of the relation associated with the reminder. It can refer to any relation type within the system and is not necessarily a tenant. For example, it may also refer to an owner who has an outstanding debt with another owner. |
filter.invoiceDate.from | The invoice date. This defines the lower border of the range. |
filter.invoiceDate.to | The invoice date. This defines the upper border of the range. |
filter.paymentTermName | Description of the payment term, for example: "Payment must be made by [date]." |
filter. dueDate.on | Due date of the invoice. This defines the lower border of the range. |
filter.dueDate.to | Due date of the invoice. This defines the upper border of the range. |
filter.totalAmountExcl.from | Total amount excluding VAT. The amount is expressed with two decimals. This defines the lower border of the range. |
filter.totalAmountExcl.to | Total amount excluding VAT. The amount is expressed with two decimals. This defines the upper border of the range. |
filter.totalAmountVAT.from | Total VAT amount. The amount is expressed with two decimals. This defines the lower border of the range. |
filter.totalAmountVAT.to | Total VAT amount. The amount is expressed with two decimals. This defines the upper border of the range. |
filter.totalAmountIncl.from | Total amount including VAT. The amount is expressed with two decimals. This defines the lower border of the range. |
filter.totalAmountIncl.to | Total amount including VAT. The amount is expressed with two decimals. This defines the upper border of the range. |
filter.outstandingAmount.from | Total outstanding amount for this month only. This reflects the amount due specifically within the current month and does not include any outstanding balances from previous months. The amount is expressed with two decimals. This defines the lower border of the range. |
filter.outstandingAmount.to | Total outstanding amount for this month only. This reflects the amount due specifically within the current month and does not include any outstanding balances from previous months. The amount is expressed with two decimals. This defines the upper border of the range. |
filter.totalOutstandingAmountReacalculateDate.from | The date on which the outstanding debt was last updated. This value is generated by Bloxs. This defines the lower border of the range. |
filter.totalOutstandingAmountReacalculateDate.to | The date on which the outstanding debt was last updated. This value is generated by Bloxs. This defines the upper border of the range. |
Security
HTTP
Type Bearer
Please enter a valid token
Body parameters
object
paging
object (PagingInfo)
pageSize
integer (int32) | null
Minimum1
Maximum1000
pageNumber
integer (int32) | null
Minimum1
Maximum9999
sorting
object (SortingInfo)
columnName
string | null
order
integer (int32)
Valid values[ \0\, \1\ ]
filter
object (SalesInvoiceSearchRequestFilter)
reference
string | null
ownerReference
string | null
relationReference
string | null
invoiceDate
object (CompareFilterModelDateTime)
from
string (date-time) | null
to
string (date-time) | null
paymentTermName
string | null
dueDate
object (CompareFilterModelDateTime)
from
string (date-time) | null
to
string (date-time) | null
totalAmountExcl
object (CompareFilterModelDecimal)
from
number (double) | null
to
number (double) | null
totalAmountVAT
object (CompareFilterModelDecimal)
from
number (double) | null
to
number (double) | null
totalAmountIncl
object (CompareFilterModelDecimal)
from
number (double) | null
to
number (double) | null
outstandingAmount
object (CompareFilterModelDecimal)
from
number (double) | null
to
number (double) | null
outstandingAmountRecalculateDate
object (CompareFilterModelDateTime)
from
string (date-time) | null
to
string (date-time) | null
Responses
200
OK
object
paging
object (PagingInfo)
pageSize
integer (int32) | null
Minimum1
Maximum1000
pageNumber
integer (int32) | null
Minimum1
Maximum9999
sorting
object (SortingInfo)
columnName
string | null
order
integer (int32)
Valid values[ \0\, \1\ ]
salesInvoices
Array of object (SalesInvoiceSearchResultFilter) | null
object
reference
string | null
ownerReference
string | null
relationReference
string | null
invoiceDate
string (date-time)
paymentTermName
string | null
dueDate
string (date-time)
totalAmountExcl
number (double)
totalAmountVAT
number (double)
totalAmountIncl
number (double)
outstandingAmount
number (double) | null
outstandingAmountRecalculateDate
string (date-time) | null