Results leave as a spreadsheet for people or as JSON for systems — with the same field names, the same checks and a receipt for every delivery.
Send the same file twice, get one document.
Webhooks retry 1 min → 5 → 30 → 2 h → 12 h (sample schedule).
An HMAC signature proves the call came from OCR Editor.
CSV files open in Excel with Vietnamese diacritics intact.
seller.tax_codetext — keeps leading 0invoice.symbol / .numberas printedinvoice.datedd/MM/yyyy ↔ ISO 8601lines[]one row per line, linked by doc idlines[].vat_rate0 / 5 / 8 / 10 — per linetotalnumber, no separatorsEvery change of state can call your webhook, so your systems never have to ask “is it done yet?”.
document.receivedupload · mail · folder
document.classifiedtype and entity found
document.needs_reviewa field below threshold
document.validated6 checks passed, reviewed
document.exportedsent to Excel · API · ERP
document.receiveddoc_7731200document.classifieddoc_7731200document.needs_reviewdoc_7731200document.validateddoc_7731200document.exporteddoc_7731200/v1/documentsUpload a file — returns an id at once/v1/documents/{id}Fields, checks and status/v1/documents?status=validatedEverything ready since a time/v1/documents/{id}/approveApprove from your own system/v1/exports/{batch}.xlsxA batch as a spreadsheet/v1/webhooksSubscribe to state eventsDraft API · field names are examples
/v1/documentscurl -X POST https://ocr.example.vn/v1/documents \ -H "Authorization: Bearer $TOKEN" \ -H "Idempotency-Key: 9f2c-0931" \ -F file=@INV-00000931.pdf -F type=INVResponse · 202 Accepted
{ "id": "doc_7731", "status": "received", "received_at": "2026-10-18T09:02:11+07:00" }
/v1/documents/{id}GET /v1/documents/doc_7731Authorization: Bearer $TOKENResponse · 200 OK
{ "id": "doc_7731", "status": "validated", "fields": { "seller_tax_code": "0312345678", "invoice_no": "00000931", "total": 53460000 }, "checks": { "passed": 6, "failed": 0 } }
/v1/documents?status=validatedGET /v1/documents?status=validated &since=2026-10-18T09:00:00+07:00&limit=50Response · 200 OK
{ "data": [ { "id": "doc_7731" }, { "id": "doc_7734" } ], "next_cursor": "c_19" }
/v1/documents/{id}/approvePOST /v1/documents/doc_7731/approve{ "approver": "acc.minh", "note": "PO-2611" }Response · 200 OK
{ "id": "doc_7731", "status": "validated", "approved_by": "acc.minh", "approved_at": "2026-10-18T09:06:40+07:00" }
/v1/exports/{batch}.xlsxGET /v1/exports/b_1018.xlsxAccept: application/vnd.openxmlformats- officedocument.spreadsheetml.sheetResponse · 200 OK
invoices_b_1018.xlsx · 42 rows · 18 columnsdates ISO 8601 · amounts in VND, no separators
/v1/webhooksPOST /v1/webhooks{ "url": "https://erp.sample.vn/hooks/ocr", "events": ["document.validated", "document.exported"] }Response · 201 Created
{ "id": "wh_12", "secret": "whsec_••••••••", "events": 2 }
Vietnamese companies book in MISA, Fast or Bravo; Korean groups often in SAP or Douzone. Each gets the format it expects.
0312345678 → 2300987654
✓ 6BAPI_INCOMINGINVOICE_CREATE HEADERDATA-INVOICE_IND = "X" HEADERDATA-DOC_DATE = "20261018" HEADERDATA-REF_DOC_NO = "1C26TMP-00000931" HEADERDATA-GROSS_AMOUNT = 53460000 CURRENCY = "VND" ITEMDATA-PO_NUMBER = "4500002611"
Connectors are confirmed per project and version — sample methods shown.
24 h → held in the console · resend in one click
X-Signature: HMAC-SHA256 of timestamp + bodyevent_id lets your side ignore repeatsevents of one document never overtake each otherAfter the last retry the event waits in the console; one click sends it again.
Events for the same document arrive in the order they happened.
Retry times are set with your IT team.
One schema feeds files, API and webhooks, so every channel carries the same data. Connectors are set per ERP and version.
Approved fields map to one JSON schema aligned with the tax XML invoice fields.
OpenAPI 3.1 descriptionERP or middleware pulls documents over REST with a short-lived OAuth 2.0 token.
Client credentials grantEach event is signed with HMAC-SHA256 over timestamp and body; old timestamps are refused.
Reject if skew > 5 minConnectors create the vendor invoice; an Idempotency-Key stops double posting on retries.
BAPI · IDoc · Service LayerThe ERP document number returns to OCR Editor, closing the loop for reconciliation.
Status: posted / failedSame schema for list, get and bulk export
Keys scoped per company and per document type
Retries up to 24 h; events in order per document
BOM lets Excel open Vietnamese diacritics correctly
VND has no minor unit (ISO 4217), so no decimals
Fast, Bravo, Douzone through their import or API per project
Events acknowledged by the receiver within a minute; pilot target.
ERP documents created twice for one invoice, checked at month-end.
From final approval to ERP document number; median target.
Exports refused by the ERP for master-data gaps; fixed in setup.
Typical targets, agreed per site in the acceptance test.
Sets the XML e-invoice format from 1 Jul 2026; export field names follow its data items.
The standard XML file is the tax invoice itself; exports carry the 24-digit NTS approval number.
Japan’s Peppol invoice on UBL 2.1; the JSON schema maps to it per project.
Directive (EU) 2025/516 makes EN 16931 invoices the rule for intra-EU B2B from 1 Jul 2030.
Voluntary UBL network from the Business Payments Coalition pilot; a market standard, not a law.
Not for Excel. For API and webhooks, a developer on your side or ours connects them — usually days, not weeks.
Yes — the mapping is set per export, so your import file looks exactly as your accounting software expects.
Numbers without separators and ISO dates for systems; Vietnamese or Korean display formats for people.
It is shared with customers during the project; names on this page are a draft.
MISA, Fast and Bravo, common in Vietnam; SAP Business One or S/4HANA and Douzone, common in Korean groups; and NFFICE Finance natively. The method — import template, file drop, API or IDoc/BAPI — is set per project and version.
Yes. The same checked fields can go to several places, for example a Dong Nai plant booking in MISA while the Seoul head office receives the same invoices in Douzone, each with its own column mapping.
An upload carries an Idempotency-Key, so sending the same file again still gives one document. An invoice that was already received is marked as a duplicate and does not reach your books twice.
Each of the five states — received, classified, needs review, validated, exported — can call your webhook. Your system can also ask for everything validated since a given time.
Nothing is lost. The webhook is retried on a schedule agreed with your IT team, events for one document arrive in order, and after the last retry the event waits in the console for a one-click resend. Each call is signed with HMAC so you can tell it came from OCR Editor.
No. CSV files are written in UTF-8 with a BOM, so Vietnamese tone marks survive in Excel, and tax codes are kept as text so the leading zero stays. Line items go on their own sheet, one row per line, linked by document ID.