Skip to main content
DELETE

Delete an incoming document

Scope:accounting:purchases.write
https://api.holded.com/api/v2/inbox/{incomingDocumentId}

Permanently deletes an incoming document and its associated files from the inbox. This action cannot be undone. Incoming documents are scanned purchase documents that have not yet been exported or attached to a Holded document.

Parameters

Path parameters

incomingDocumentIdstringrequired

Incoming document identifier (24-char hex ObjectId)

Request

python
import requests

url = "https://api.holded.com/api/v2/inbox/507f1f77bcf86cd799439011"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.delete(url, headers=headers)
print(response.json())

Responses

Success responses

204Resource deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Incoming document not foundapplication/json
429Rate limit exceededapplication/json