Skip to content

API reference

Download a file that could not be read

Other routes API

GET/v1/arrivals/not-accepted/{id}/file

Returns a file that was accepted and could not be read, as it arrived, always as an attachment. It is kept for 30 days after it failed, until it is dismissed. Any credential may read it.

Path parameters

  • idstringRequired

    The arrival's id, as file-<n>.

Status codes

Status Meaning
200 The file. application/pdf or application/xml; any other kind as application/octet-stream.
401 No usable credential was sent (invalid_credentials).
404 This company has no such file (arrival_not_found). It never was, was dismissed, is older than 30 days, or carried a virus and was never kept.
GET/v1/arrivals/not-accepted/{id}/file
Example
curl https://api.certinvo.com/v1/arrivals/not-accepted/$NOT_ACCEPTED_ID/file \
  -H "Authorization: Bearer $CERTINVO_API_KEY"
const notAcceptedId = '3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a'

const response = await fetch(`https://api.certinvo.com/v1/arrivals/not-accepted/${notAcceptedId}/file`, {
  headers: {
    Authorization: `Bearer ${process.env.CERTINVO_API_KEY}`,
  },
})
console.log(response.status, await response.json())
import os

import requests

not_accepted_id = "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a"

response = requests.get(
    f"https://api.certinvo.com/v1/arrivals/not-accepted/{not_accepted_id}/file",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/pdf
The body is the file itself (application/pdf).
Success response
GET
/v1/arrivals/not-accepted/{id}/file
Download a file that could not be read
All
›AuthenticationRequiredBearerAuth

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

›Variables1
›Headers2
›Code Snippet
curl -X GET "https://api.certinvo.com/v1/arrivals/not-accepted/{id}/file" \
  -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