EN·VI·KO·JA Contact
Solutions / OCR Editor / Excel & API export
[ OCR Editor · Excel & API export ]

Checked data,delivered where you work.

Spreadsheets for people, JSON and webhooks for systems, import files for your accounting software
— the same fields and the same checks every time.

Excel & API export

From approvalto your ledger.

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.

Your system
OCR Editor
Reviewer
ERP · NFFICE
01 · POST /v1/documentsfile · type=INV · Idempotency-Key
02 · 202 Accepted{ "id": "doc_7731" }
03 · document.needs_review1 field below threshold
04 · approved · 09:14Subtotal corrected
05 · webhook · document.validatedX-Signature: HMAC-SHA256
06 · GET /v1/documents/doc_7731200 · application/json
07 · voucher postedPK-2610-0931
Draft API · field names are examples
invoices_2026-10.xlsx · sheet “Headers”
A · DOC_IDB · MST_NCCC · KY_HIEUD · SO_HDE · NGAY_HDM · TONG_TIEN2doc_773103123456781C26TMP0000093118/10/2026534600003doc_773201098765431C26TAA0000021218/10/2026126500004doc_77332300987654-0011C26THB0000140719/10/202689100005doc_773403123456781C26TMP0000094419/10/202627540000
Idempotency-Key

Send the same file twice, get one document.

Retries with backoff

Webhooks retry 1 min → 5 → 30 → 2 h → 12 h (sample schedule).

Signed webhooks

An HMAC signature proves the call came from OCR Editor.

UTF-8 · BOM

CSV files open in Excel with Vietnamese diacritics intact.

FieldExcel columnMISA importJSON pathRule
Seller tax codeB · MST_NCCMã NCCseller.tax_codetext — keeps leading 0
Invoice symbol & no.C · KY_HIEU / D · SO_HDKý hiệu · Số HĐinvoice.symbol / .numberas printed
Issue dateE · NGAY_HDNgày hóa đơninvoice.datedd/MM/yyyy ↔ ISO 8601
Line itemssheet “Lines”Chi tiết hànglines[]one row per line, linked by doc id
VAT rateK · THUE_SUATThuế suấtlines[].vat_rate0 / 5 / 8 / 10 — per line
TotalM · TONG_TIENTổng tiềntotalnumber, no separators
Document states

Five states,one event each.

Every change of state can call your webhook, so your systems never have to ask “is it done yet?”.

INV · 00000931
Receiveddocument.received

upload · mail · folder

Classifieddocument.classified

type and entity found

Needs reviewdocument.needs_review

a field below threshold

Validateddocument.validated

6 checks passed, reviewed

Exporteddocument.exported

sent to Excel · API · ERP

document.rejectedRejected — wrong entity or unreadablefrom · Classified
document.duplicateDuplicate — already receivedfrom · Received
Webhook log
09:02:11POST /hooks/ocrdocument.receiveddoc_7731200
09:02:13POST /hooks/ocrdocument.classifieddoc_7731200
09:02:14POST /hooks/ocrdocument.needs_reviewdoc_7731200
09:06:40POST /hooks/ocrdocument.validateddoc_7731200
09:06:41POST /hooks/ocrdocument.exporteddoc_7731200
API

Six callscover the job.

01POST/v1/documentsUpload a file — returns an id at once
02GET/v1/documents/{id}Fields, checks and status
03GET/v1/documents?status=validatedEverything ready since a time
04POST/v1/documents/{id}/approveApprove from your own system
05GET/v1/exports/{batch}.xlsxA batch as a spreadsheet
06POST/v1/webhooksSubscribe to state events
Bearer tokenIdempotency-KeyCursor pagingOpenAPI 3.1

Draft API · field names are examples

POST/v1/documents
Request
curl -X POST https://ocr.example.vn/v1/documents \  -H "Authorization: Bearer $TOKEN" \  -H "Idempotency-Key: 9f2c-0931" \  -F file=@INV-00000931.pdf -F type=INV
Response · 202 Accepted
{ "id": "doc_7731",  "status": "received",  "received_at": "2026-10-18T09:02:11+07:00" }
GET/v1/documents/{id}
Request
GET /v1/documents/doc_7731Authorization: Bearer $TOKEN
Response · 200 OK
{ "id": "doc_7731", "status": "validated",  "fields": { "seller_tax_code": "0312345678",    "invoice_no": "00000931", "total": 53460000 },  "checks": { "passed": 6, "failed": 0 } }
GET/v1/documents?status=validated
Request
GET /v1/documents?status=validated    &since=2026-10-18T09:00:00+07:00&limit=50
Response · 200 OK
{ "data": [ { "id": "doc_7731" }, { "id": "doc_7734" } ],  "next_cursor": "c_19" }
POST/v1/documents/{id}/approve
Request
POST /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" }
GET/v1/exports/{batch}.xlsx
Request
GET /v1/exports/b_1018.xlsxAccept: application/vnd.openxmlformats-        officedocument.spreadsheetml.sheet
Response · 200 OK
invoices_b_1018.xlsx · 42 rows · 18 columnsdates ISO 8601 · amounts in VND, no separators
POST/v1/webhooks
Request
POST /v1/webhooks{ "url": "https://erp.sample.vn/hooks/ocr",  "events": ["document.validated", "document.exported"] }
Response · 201 Created
{ "id": "wh_12",  "secret": "whsec_••••••••",  "events": 2 }
Accounting & ERP

Into the softwareyou already run.

Vietnamese companies book in MISA, Fast or Bravo; Korean groups often in SAP or Douzone. Each gets the format it expects.

INV · 1C26TMP · 0000093153.460.000 ₫

0312345678 → 2300987654

✓ 6
What it receivesMISAExcel import template
MISA_import_mua_hang.xlsx
Ngày hạch toánSố hóa đơnMã NCCTiền hàngThuế GTGT18/10/202600000931V-041848.600.0004.860.000
What it receivesFastExcel import template
\\fs01\fast\import\PK-2610-0931.xlsx18:00 · 42 rows
\\fs01\fast\done\PK-2610-0930.xlsx ✓
What it receivesBravoImport file
bravo_nhap_hd_mua.xlsx
Ngày CTSố CTMã kháchTiềnVAT18/10/2026PK0931V-041848.600.0004.860.000
What it receivesSAPAPI
BAPI_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"
What it receivesDouzoneExcel import
매입매출전표_가져오기.xlsx
일자유형거래처공급가액부가세2026-10-1851.과세V-041848,600,0004,860,000
What it receivesNFFICENative
PV-26-1018NFFICE Finance
642 / 1331 → 33153.460.000
00000931.pdf✓
MISAAMIS · SME
Excel import templateAPI
FastFast Accounting · Business
Excel import templatefile drop
BravoBravo ERP
Import fileAPI
SAPBusiness One · S/4HANA
APIIDoc / BAPI
DouzoneiCUBE · Amaranth 10
Excel importAPI
NFFICEFinance
Native

Connectors are confirmed per project and version — sample methods shown.

Delivery

If your system is down,nothing is lost.

OCR Editorevent_id evt_88f1
Your systemdownback
0first try
1 min
5 min
30 min
2 h
12 h
24 hheld for resend
#1503
#2timeout
#3503
#4200

24 h → held in the console · resend in one click

Delivery log
09:06:41Attempt 1503
09:07:41Attempt 2timeout
09:11:41Attempt 3503
09:36:41Attempt 4200
SignedX-Signature: HMAC-SHA256 of timestamp + body
No double bookingevent_id lets your side ignore repeats
In orderevents of one document never overtake each other
Held, not dropped

After the last retry the event waits in the console; one click sends it again.

In order per document

Events for the same document arrive in the order they happened.

Sample schedule

Retry times are set with your IT team.

Under the hood

From approved fields to a posted ERP document

One schema feeds files, API and webhooks, so every channel carries the same data. Connectors are set per ERP and version.

Processing chain5 STAGES · LIVE
01Map to schema

Approved fields map to one JSON schema aligned with the tax XML invoice fields.

OpenAPI 3.1 description
02Pull by API

ERP or middleware pulls documents over REST with a short-lived OAuth 2.0 token.

Client credentials grant
03Push by webhook

Each event is signed with HMAC-SHA256 over timestamp and body; old timestamps are refused.

Reject if skew > 5 min
04Post to ERP

Connectors create the vendor invoice; an Idempotency-Key stops double posting on retries.

BAPI · IDoc · Service Layer
05Write back

The ERP document number returns to OCR Editor, closing the loop for reconciliation.

Status: posted / failed
Datasheet
APIREST + JSON, OpenAPI 3.1

Same schema for list, get and bulk export

AuthOAuth 2.0 client creds or API key

Keys scoped per company and per document type

Webhook deliveryAt-least-once, exponential backoff

Retries up to 24 h; events in order per document

FilesXLSX · CSV UTF-8 with BOM

BOM lets Excel open Vietnamese diacritics correctly

FormatsISO 8601 dates · VND as integer

VND has no minor unit (ISO 4217), so no decimals

ERP connectorsSAP, SAP B1, MISA AMIS, others

Fast, Bravo, Douzone through their import or API per project

Measured targets
≥ 99.5 %Webhook delivered < 1 min

Events acknowledged by the receiver within a minute; pilot target.

0Duplicate postings

ERP documents created twice for one invoice, checked at month-end.

< 5 minApprove to posted

From final approval to ERP document number; median target.

≤ 1 %Mapping rejects

Exports refused by the ERP for master-data gaps; fixed in setup.

Typical targets, agreed per site in the acceptance test.

Rules that apply
VNCircular 91/2026/TT-BTC

Sets the XML e-invoice format from 1 Jul 2026; export field names follow its data items.

KRNTS e-tax invoice XML standard

The standard XML file is the tax invoice itself; exports carry the 24-digit NTS approval number.

JPJP PINT (Peppol, Digital Agency)

Japan’s Peppol invoice on UBL 2.1; the JSON schema maps to it per project.

EUEN 16931 · Peppol BIS Billing 3.0

Directive (EU) 2025/516 makes EN 16931 invoices the rule for intra-EU B2B from 1 Jul 2030.

USDBNAlliance e-invoice exchange framework

Voluntary UBL network from the Business Payments Coalition pilot; a market standard, not a law.

FAQ

Questions we hear often

Do we need developers?

Not for Excel. For API and webhooks, a developer on your side or ours connects them — usually days, not weeks.

Can the column names follow our template?

Yes — the mapping is set per export, so your import file looks exactly as your accounting software expects.

Which number and date formats?

Numbers without separators and ISO dates for systems; Vietnamese or Korean display formats for people.

Is the API documentation public?

It is shared with customers during the project; names on this page are a draft.

Which accounting and ERP systems can receive the data?

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.

Can one group send to different systems?

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.

What if the same file is uploaded twice?

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.

How does our system know a document is ready?

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.

What if our system is down when an event is sent?

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.

Will Excel break Vietnamese text or tax codes?

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.

Turn your paper
into data.

A specialist replies within one business day — in English, Vietnamese, Japanese or Korean.

Book a consultationContact us
↑Back to top