Moloni ON Logo WhiteGuidesAPI ReferenceExplorer
API Reference

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

NameTypeDescription
companyIdInt!
ocrJobIdString!
documentTypeApiCode!

© 2026 Moloni ON

Tax Authority Certificate No. 3075