post
https://{subdomain}.ingenious.build/api/v2/pub/contracted-invoices/from-file
Creates a Contracted Invoice from a PDF via AI OCR. Reads the document, extracts line items, dates and the unique invoice number, then persists the invoice in the requested terminal status (draft, fully-approved, or paid). Returns 422 when extraction fails, currency mismatches the project, or extracted totals disagree with the line items. The PDF must first be uploaded via POST /v2/pub/files.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
201Created
400Bad Request
401Unauthorized
403Access Denied
404Project or contract not found
422OCR extraction failed or domain rules rejected the invoice
429Rate limit exceeded