Skip to main content
POST

Create an invoicing forecast

Scope:accounting:cashflow.write
https://api.holded.com/api/v2/treasury/cashflow/invoicing-forecasts

Creates a new invoicing forecast linked to an existing estimate or purchase order. A forecast represents a scheduled payment milestone with an expected date and amount. Use when the user wants to add a cashflow forecast entry for an open document. Distinct from creating a payment: a forecast is a future projection, not a recorded transaction.

Request body

object
relatedDocumentIdstringrequired

Identifier of the related estimate or purchase order (24-character hex ObjectId)

relatedDocumentTypestringrequired

Type of the related document

Enum:estimateorder
issueDatestring<date>required

Expected issue date in ISO 8601 format (YYYY-MM-DD)

dueDatestring<date>required

Payment due date in ISO 8601 format (YYYY-MM-DD)

descriptionstringoptional

Optional description of the forecast entry

amountstringrequired

Forecast amount as decimal string. Provide a positive value; forecasts linked to a purchase order are stored and returned as negative (cash outflow).

percentagenumber<float>required

Percentage of the total document amount this forecast covers (0–100)

Request

python
import requests

url = "https://api.holded.com/api/v2/treasury/cashflow/invoicing-forecasts"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "relatedDocumentId": "507f1f77bcf86cd799439011",
    "relatedDocumentType": "estimate",
    "issueDate": "2026-06-01",
    "dueDate": "2026-07-01",
    "description": "First milestone payment",
    "amount": "5000.00",
    "percentage": 50
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Success responses

201Invoicing forecast created

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Related estimate or purchase order not foundapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json