ocrJobCreateDocument
mutation
Create the draft document from a ready OCR job
Only allowed when the job is ready. Creates a draft document of the given documentType
(must be a purchase document, e.g. supplierInvoice/ supplierReceipt) pre-filled from the
extracted suggestions, links it to the job, and transitions the job to done. Idempotent —
a job already linked to a draft returns that same draft.
mutation {
ocrJobCreateDocument(companyId: Int!, ocrJobId: String!, documentType: ApiCode!): OcrJob!
}Returns: OcrJob!
Arguments
| Name | Type | Description |
|---|---|---|
companyId | Int! | |
ocrJobId | String! | |
documentType | ApiCode! |