Skip to content

Get Rejected Invoices

Request

Returns documents whose latest F2 reporting status is a rejection, i.e. the buyer rejected the invoice and the rejection report was accepted by the tax authority. The date range is matched against the document creation date; rejectionDate in the response carries the time the tax authority processed the rejection report.

Security
PublicApiKey
Query
pageNumberinteger, >= 1

Page number (starting from 1)

Default:1
Example:pageNumber=1
pageSizeinteger, [ 1 .. 1000 ]

Number of items per page

Default:50
Example:pageSize=200
Bodyapplication/jsonrequired
companyVatNumberstringrequired

The VAT number of the company.

Example:"HR12345678910"
dateFromstring, (date-time)required

Start of the date range; matched against the document creation date.

dateTostring, (date-time)required

End of the date range; matched against the document creation date.

curl -i -X POST \
  'https://omnizon-public-api.redocly.app/_mock/openapi/rest/v1/documents/getRejected?pageNumber=1&pageSize=200' \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "companyVatNumber": "HR12345678910",
    "dateFrom": "2019-08-24T14:15:22Z",
    "dateTo": "2019-08-24T14:15:22Z"
  }'

Responses

Rejected invoices in the requested creation-date range.

Bodyapplication/json
itemsArray of objects(RejectedDocumentReturnModel)required

List of rejected invoice documents.

totalElementsinteger, (int64), >= 0required

Total number of documents found across all pages

Example:47
totalPagesinteger, >= 0required

Total number of pages available

Example:2
sizeinteger, [ 1 .. 1000 ]required

Current page size (number of items per page)

Example:25
numberinteger, >= 1required

Current page number (1-based)

Example:1
numberOfElementsinteger, >= 0required

Number of elements in current page

Example:25
firstbooleanrequired

Whether this is the first page

Example:true
lastbooleanrequired

Whether this is the last page

Example:false
emptybooleanrequired

Whether the page is empty

Example:false
Response
{ "items": [ { … } ], "totalElements": 47, "totalPages": 2, "size": 25, "number": 1, "numberOfElements": 25, "first": true, "last": false, "empty": false }