/v1/arrivals/not-acceptedReturns 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
- directionstring
in: mails and files dropped inincoming/.out: files dropped inoutgoing/. Absent: both.One ofin,out. - limitinteger
- cursorstring
The
nextCursorfrom the previous page. A cursor this service did not issue returns 400, never an empty page.
Response
A 200 answer carries these fields.
- arrivalsarray of objectRequired
Show 11 child fields
- idstringRequired
Stable for this arrival, as
email-<n>,sftp-<n>orfile-<n>. - channelstringRequired
How it came in.
One ofemail,sftp,upload,api,made. - receivedAtstring (date-time)Required
- fromstringRequired
The sender's address, or the SFTP folder and file name, as
incoming/<file>. - subjectstring or nullRequired
A mail's subject.
- reasonstringRequired
refused-sender: the sender is not on the address's list.refused-unauthenticated: the mail passed neither DKIM nor DMARC.no-invoice-file: the mail carried no XML or PDF.unreadable-zip: a ZIP in the mail could not be unpacked, so nothing of it was filed.refused: the SFTP file was not filed, anderrorsays why.duplicate: the same bytes were filed before.unreadable: the file was accepted and could not be read;errorsays why andfilenames it.virus-found: the virus scan found a virus in the file;virusis the scanner's name for it, and the file was not kept.One ofrefused-sender,refused-unauthenticated,no-invoice-file,unreadable-zip,refused,duplicate,unreadable,virus-found. - errorobject or nullRequired
Why a refused SFTP file was not filed, or why a file could not be read:
no-invoice-xmlfor a PDF with no invoice XML in it, which is not an e-invoice, elseunreadable_document.messageis the reader's sentence. For a virus,virus-foundand a sentence that names it; the name itself isvirus.Show 2 child fields
- codestringRequired
- messagestringRequired
- invoiceIdstring (uuid) or nullRequired
The invoice a duplicate's first drop became.
- keptFilesintegerRequired
How many invoice files a mail refused for its sender still keeps, for
POST /v1/arrivals/not-accepted/{id}/allowor.../dismiss; 1 for a file that could not be read. 0 for every other arrival, a file with a virus too. - virusstring
The virus scanner's name for the virus, such as
Eicar-Test-Signature. Only on avirus-foundrow. - fileobject
A file that could not be read, kept for 30 days.
Show 2 child fields
- namestringRequired
- mediaTypestringRequired
- nextCursorstring or nullRequired
- hasMorebooleanRequired
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). |
/v1/arrivals/not-acceptedcurl https://api.certinvo.com/v1/arrivals/not-accepted \
-H "Authorization: Bearer $CERTINVO_API_KEY"const response = await fetch(`https://api.certinvo.com/v1/arrivals/not-accepted`, {
headers: {
Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
},
})
console.log(response.status, await response.json())import os
import requests
response = requests.get(
"https://api.certinvo.com/v1/arrivals/not-accepted",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text){
"arrivals": [
{
"id": "string",
"channel": "email",
"receivedAt": "2026-09-17T09:30:00Z",
"from": "string",
"subject": "string",
"reason": "refused-sender",
"error": {
"code": "string",
"message": "string"
},
"invoiceId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"keptFiles": 0,
"virus": "string",
"file": {
"name": "string",
"mediaType": "string"
}
}
],
"nextCursor": "string",
"hasMore": true
}