Skip to content

API reference

Dismiss a refused mail and delete its kept files

Other routes API

POST/v1/arrivals/not-accepted/{id}/dismiss

Deletes the invoice files a refused mail keeps. The mail stays in the list as refused, keeping no file. For a file that could not be read, as file-<n>, deletes the file and its row.

Path parameters

  • idstringRequired

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

Response

A 200 answer carries these fields.

  • idstringRequired
  • deletedintegerRequired

    How many files were deleted.

Status codes

Status Meaning
200 The kept files are deleted.
401 No usable credential was sent (invalid_credentials), or it is not a signed-in person (session_required).
404 This company has no arrival with that id (arrival_not_found).
409 The mail keeps no file (nothing_kept).
POST/v1/arrivals/not-accepted/{id}/dismiss
Example
curl -X POST https://api.certinvo.com/v1/arrivals/not-accepted/$NOT_ACCEPTED_ID/dismiss \
  -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}/dismiss`, {
  method: 'POST',
  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.post(
    f"https://api.certinvo.com/v1/arrivals/not-accepted/{not_accepted_id}/dismiss",
    headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)
200
application/json
{
  "id": "string",
  "deleted": 0
}
Success response
POST
/v1/arrivals/not-accepted/{id}/dismiss
Dismiss a refused mail and delete its kept files
All
›AuthenticationRequiredBearerAuth

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

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