Calculate invoice deadlines (customer API key)
calculate_lien_deadlineCalculate US mechanics lien and preliminary notice deadlines from an invoice date and state, returning key dates, day counts, and warnings for construction projects.
Instructions
Customer API tool: requires LIENDEADLINE_API_KEY, a dedicated LienDeadline customer key; without one it returns a configuration error and makes no request. Calculates the preliminary notice and lien filing deadlines for one construction invoice from its invoice or delivery date and state. Returns JSON with state, invoice_date, project_type, preliminary_notice_deadline, lien_deadline, waiver_due_date, prelim_deadline_days, lien_deadline_days, warnings such as weekend or holiday rollover, notes and a disclaimer. A date, day count or project_type the API does not return is null; missing warnings is [] and missing notes is an empty string. API denials (401 key, 403 scope, 429 rate limit) return a tool error. Read-only. Not legal advice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Your role on the project, e.g. "supplier", "contractor", "subcontractor". | |
| state | Yes | Two-letter US state code, e.g. "TX", "CA", "DC", from the jurisdictions the customer API supports. | |
| notice_date | No | Date a preliminary notice was actually sent, YYYY-MM-DD, if one was. Omit otherwise. | |
| invoice_date | Yes | Invoice or delivery date in YYYY-MM-DD format; deadlines count from it. | |
| project_type | No | Usually "Commercial" or "Residential". Changes the deadline in some states. |