Skip to main content

Save Draft (Working State)

PATCH 

/api/landed-cost-invoices/ocr/:landed_cost_extraction_id/draft

Persist in-progress edits to the review form so users can resume later (across browser refresh / device switch). The working_state body is an opaque object stored on the extraction — the frontend defines its shape (typically header_overrides, line_overrides, selected_targets, etc.). Returns the updated extraction.

Request body:

FieldTypeRequiredNotes
working_stateobjectyesOpaque JSON; shape defined by the frontend review UI.

Refuses (422) if the extraction is in confirmed status.

Request

Responses

Successful response