DELETE
Delete an expenses account
Scope:
accounting:expenses-accounts.writehttps://api.holded.com/api/v2/expenses-accounts/{expensesAccountId}Permanently deletes an expenses account. You cannot delete an account that is assigned to contacts or documents. Consider archiving it instead to preserve existing references.
Parameters
Path parameters
expensesAccountId
stringrequiredExpenses Account ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/expenses-accounts/{expensesAccountId}"
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/json404Expenses account not foundapplication/json