Skip to content

Invoices · List invoices

List invoices

Return a page of an organization's invoices. Results are paginated by page number and can be sorted and filtered by status, search text, and date range.

GET
/api/v1/organizations/{organizationReference}/invoices/posBearer token · X-Client-Id

Authentication and headers

Authenticate with the bearer token from POST /api/v1/organizations/pos/authenticate (see Access token) and send the X-Client-Id header on every request. Define the host once, for example EINV_BASE_URL=https://api.uat.einvoicing.avetiumtechnologies.com/api/v1, and call $EINV_BASE_URL/api/v1/....

FieldTypeDescription
X-Client-Id *stringThe organization's client identifier.
Authorization *stringBearer <access_token> from POST /api/v1/organizations/pos/authenticate.

Path parameter

FieldTypeDescription
organizationReference *stringReference of the organization whose invoices you are listing.

Query parameters

FieldTypeDescription
pageintegerZero-based page number. Minimum 0; default 0.
sizeintegerItems per page. Minimum 1, maximum 100; default 20.
sortBystringField to sort by; default dateCreated.
sortDirstringSort direction; default desc.
statusstringFilter by invoice status. See the status values below.
searchstringMatches invoice number or customer name.
startDatedateStart of the date range, formatted yyyy-MM-dd (for example 2026-07-01).
endDatedateEnd of the date range, formatted yyyy-MM-dd (for example 2026-07-19).

The status filter takes one of these values:

FieldTypeDescription
DRAFTstatusDraft invoice.
INPUT_VALIDATEDstatusInput validation passed.
INPUT_REJECTEDstatusInput validation failed.
NRS_VALIDATEDstatusValidated against NRS.
FAILED_NRS_VALIDATIONstatusNRS validation failed.
VALIDATEDstatusValidated.
SUBMITTEDstatusSubmitted for approval.
REJECTEDstatusRejected.
NRS_APPROVEDstatusApproved by NRS.
NRS_REJECTEDstatusRejected by NRS.

Response

Every response is wrapped in the envelope { statusCode, message, timestamp, data, successful }. For this endpoint, data is a page object:

FieldTypeDescription
contentarrayInvoice list items for the requested page.
numberintegerZero-based index of this page.
sizeintegerRequested page size.
numberOfElementsintegerNumber of items on this page.
totalElementsintegerTotal matching invoices across all pages.
totalPagesintegerTotal number of pages.
firstbooleanTrue on the first page.
lastbooleanTrue on the last page.
emptybooleanTrue when the page has no items.
pageableobjectPaging details: pageNumber, pageSize, offset, paged, unpaged, sort.
sortobjectSort details: sorted, unsorted, empty.

Invoice list item

Each entry in content is a summary. Retrieve an invoice by id for its full details.

FieldTypeDescription
idstringInvoice ID. Use it to retrieve the invoice.
referencestringInvoice reference.
invoiceNumberstringHuman-readable invoice number.
titlestringInvoice title.
irnstringInvoice reference number.
creationSourceenumWEB, POS, or ERP.
invoiceTemplateIdstringTemplate used to render the invoice.
dateCreateddate-timeWhen the invoice was created.
createdBystringCreator's identifier.
creatorEmailstringCreator's email address.
statusenumInvoice status (see status values).
paymentStatusenumPENDING, PAID, or REJECTED.
legalMonetaryTotalobject{ taxInclusiveAmount }, the invoice total.
customerRecordobject{ customerName }.

Empty state

A query with no matching invoices still returns 200 with content: [], empty: true, and totalElements: 0.

Empty is not an error

Render an empty state rather than treating zero matches as a failed request.

Pagination guidance

Start at page=0 and request page+1 until last is true
Use totalPages and totalElements to render page controls
Keep filters, sortBy, sortDir, and size unchanged while paging
Restart from page=0 when filters or search change
Request at most 100 items per page

Common errors

FieldTypeDescription
400Bad RequestInvalid query parameters, for example a malformed date.
401UnauthorizedBearer token missing, expired, or invalid.
403ForbiddenThe caller may not access this organization's invoices.
404Not FoundOrganization not found.
409ConflictThe request conflicts with the current state.
500Internal Server ErrorUnexpected server error.

Error bodies use the same envelope with successful: false. See Errors.

Coming soon Soon

Published rate limits and 429 responses with retry guidance are planned. They are not part of the API today.