Create Contracted Invoice from OCR

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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
string
required
string
required
string
enum
Defaults to draft
Allowed:
string | null
Defaults to null
Responses
201

Created

400

Bad Request

401

Unauthorized

403

Access Denied

404

Project or contract not found

422

OCR extraction failed or domain rules rejected the invoice

429

Rate limit exceeded

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!