POST
/v1/arrivals/not-accepted/{id}/allowFor a mail refused because its sender is not on the inbox’s list, and that still keeps its invoice files: adds the sender to the list (a new version of PUT /v1/email-inbox’s senders, unless an entry already admits it), then files the kept files through the validation operation an arriving mail uses. The mail is then filed and its kept files are deleted. A repeated call never files the mail twice.
A refused mail keeps its XML and PDF files for 30 days, or until it is filed or dismissed. Only a signed-in person may call this.
Path parameters
- idstringRequired
The arrival's
id, asemail-<n>.
Response
A 200 answer carries these fields.
- idstringRequired
- outcomestringRequiredOne of
filed. - operationIdstring (uuid) or nullRequired
The validation operation that filed the files:
GET /v1/operations/{id}. - filesintegerRequired
Status codes
| Status | Meaning |
|---|---|
200 |
The sender is allowed and the files are filed. |
400 |
The sender cannot be added to the list (invalid_email_inbox), for example because the list is full. |
401 |
No usable credential was sent (invalid_credentials), or it is not a signed-in person (session_required). |
404 |
This company has no mail with that id (arrival_not_found). |
409 |
The mail keeps no file (nothing_kept). It was filed, dismissed, is older than 30 days, or kept none. |
POST
/v1/arrivals/not-accepted/{id}/allowExample
curl -X POST https://api.certinvo.com/v1/arrivals/not-accepted/$NOT_ACCEPTED_ID/allow \
-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}/allow`, {
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}/allow",
headers={"Authorization": f"Bearer {os.environ['CERTINVO_API_KEY']}"},
)
print(response.status_code, response.text)200
application/json
{
"id": "string",
"outcome": "filed",
"operationId": "3f0c2a5e-8d1b-4c7a-9e2f-6b5d4a3c2b1a",
"files": 0
}Success response