---
title: "List what arrived and was not accepted"
description: "Other routes API"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.certinvo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List what arrived and was not accepted

{/* Generated by apps/docs/scripts/generate.ts from contracts/api/openapi.yaml. Do not edit. */}
<div class="cvo-op">
<div class="cvo-op-main">

<div class="cvo-op-header">
<div class="cvo-op-path-row">
<span class="cvo-method" data-method="get">GET</span>
<code class="cvo-op-path-code">/v1/arrivals/not-accepted</code>
</div>
</div>

Returns the mails and SFTP files that reached this company and never became an invoice, newest first: a mail from a sender not on the inbox's list, a mail with no XML or PDF, a mail whose ZIP could not be unpacked, an SFTP file that was refused, and an SFTP file whose bytes were filed before. A filed or pending arrival is not listed. Any credential may read it.

A file that was accepted and then could not be read is listed too, as `file-<n>` with the reason `unreadable`: a PDF with no invoice XML in it (`error.code` `no-invoice-xml`, not an e-invoice), or any file the engine could not read (`unreadable_document`). It is kept for 30 days: download it with `GET /v1/arrivals/not-accepted/{id}/file`, or dismiss it.

Every received file is scanned for viruses before it is filed. A file with a virus is listed as `file-<n>` with the reason `virus-found` and the scanner's name for the virus. It is never filed and never kept, so it has no download. Dismiss it, or it goes after 30 days. The other files of the same mail are filed as usual.

Pass the `nextCursor` of the previous page as `cursor`. The cursor is opaque. Do not parse it.

## Query parameters

## Response

A `200` answer carries these fields.

## Status codes

| Status | Meaning |
|---|---|
| `200` | One page. |
| `400` | A parameter is not one this route reads (`invalid_query`), or the cursor was not issued by this service (`invalid_cursor`). |
| `401` | No usable credential was sent (`invalid_credentials`). |

</div>
<div class="cvo-op-aside">

</div>
</div>

Source: https://docs.certinvo.com/reference/api/other/list-what-arrived-and-was-not-accepted/index.mdx
