Skip to content

API reference

List what arrived and was not accepted

Other routes API

GET/v1/arrivals/not-accepted

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

  • directionstring

    in: mails and files dropped in incoming/. out: files dropped in outgoing/. Absent: both.

    One of in, out.
  • limitinteger
  • cursorstring

    The nextCursor from 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> or file-<n>.

    • channelstringRequired

      How it came in.

      One of email, 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, and error says why. duplicate: the same bytes were filed before. unreadable: the file was accepted and could not be read; error says why and file names it. virus-found: the virus scan found a virus in the file; virus is the scanner's name for it, and the file was not kept.

      One of refused-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-xml for a PDF with no invoice XML in it, which is not an e-invoice, else unreadable_document. message is the reader's sentence. For a virus, virus-found and a sentence that names it; the name itself is virus.

      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}/allow or .../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 a virus-found row.

    • 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).
GET/v1/arrivals/not-accepted
Example
curl 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)
200
application/json
{
  "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
}
Success response
GET
/v1/arrivals/not-accepted
List what arrived and was not accepted
All
›AuthenticationRequiredBearerAuth

Provide your API key in the Authorization: Bearer <key> header. Keys are stored locally in your browser.

›Headers2
›Query Parameters3
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/arrivals/not-accepted" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response

No request sent yet

Configure parameters and click Send to view the response.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close