Archive a banking account
Scope: accounting:banks.write https://api.alladdin.com/api/v2/treasury/accounts/{id}/archive
Archives a banking account, hiding it from active views while preserving its transaction history. Archiving is reversible.
A banking account must be archived before it can be permanently deleted.
Parameters
Path parameters
id string required
Banking account identifier
Request
import requests
url = "https://api.alladdin.com/api/v2/treasury/accounts/{id}/archive"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.post(url, headers=headers)
print(response.json())Responses
Success responses
204 Banking account archived
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Banking account not found application/json 429 Rate limit exceeded application/json
