Delete an invoicing forecast
Scope: accounting:cashflow.write https://api.alladdin.com/api/v2/treasury/cashflow/invoicing-forecasts/{forecastId}
Permanently deletes an invoicing forecast. This action cannot be undone.
Use when the user wants to remove a cashflow forecast entry that is no longer needed.
Distinct from the Edit endpoint: this removes the forecast entirely rather than updating it.
Parameters
Path parameters
forecastId string required
Invoicing forecast identifier (24-character hex ObjectId)
Request
import requests
url = "https://api.alladdin.com/api/v2/treasury/cashflow/invoicing-forecasts/507f1f77bcf86cd799439011"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.delete(url, headers=headers)
print(response.json())Responses
Success responses
204 Invoicing forecast deleted
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Invoicing forecast not found application/json 429 Rate limit exceeded application/json
