DELETE
Delete an incoming document
Scope:
accounting:purchases.writehttps://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
incomingDocumentId
stringrequiredIncoming 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 deletedError responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Incoming document not foundapplication/json429Rate limit exceededapplication/json