Skip to main content
DELETE

Delete an expenses account

Scope:accounting:expenses-accounts.write
https://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

expensesAccountIdstringrequired

Expenses 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 deleted

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Expenses account not foundapplication/json