Vietnam E-Signature Rules and CA Check API
Which electronic signature a Vietnamese transaction needs (Law 20/2023, Decree 23/2025) and whether a certificate chains to a licensed Vietnamese CA.
action=requirement with a transaction (commercial_contract, labour_contract, e_invoice, tax_filing, customs_declaration, social_insurance, bidding, enterprise_registration, state_document, notarised_document, land_transfer, accounting_documents, bank_transaction, internal_documents, e_commerce_order, foreign_signature) returns the signature level that is enough – any e-signature the parties accept, a certified secure specialised e-signature or digital signature (equal to a handwritten one), the organisation’s digital signature, the official public-service signature, or notarisation – with the article and a verified flag (sector rules that could not be checked against the official text are marked unverified).
action=certificate with a certificate (PEM, base64 DER or a file) parses the X.509 certificate, verifies its chain against the root and CA certificates published by NEAC (rootca.gov.vn) and the Government Cipher Committee, and says whether it is a public digital signature from a licensed CA, an official (cơ yếu) certificate or not in the Vietnamese list, plus validity dates. Revocation is not checked.
Rules: Law on Electronic Transactions 20/2023/QH15 (from 1/7/2024), Decree 23/2025/NĐ-CP (from 10/4/2025, replacing Decrees 130/2018 and 48/2024). The API never signs anything. Coverage: 16 common transaction types.
Markdown · OpenAPI · Postman · llms.txt
Parameters
| Name | In | Type | Required | Default | |
|---|---|---|---|---|---|
action | body|query | string | no | requirement or certificate (inferred from the other fields). | |
transaction | body|query | string | no | Transaction id (requirement). | |
certificate | body | string | no | X.509 certificate: PEM or base64 DER (or a multipart file certificate). |
Example
curl "https://apibox.io.vn/v1/vn-esign-rules?action=requirement&transaction=e_invoice" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-esign-rules?action=requirement&transaction=e_invoice', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/vn-esign-rules?action=requirement&transaction=e_invoice",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-esign-rules?action=requirement&transaction=e_invoice');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));Response
{
"transaction": {
"id": "e_invoice",
"vi": "Hóa đơn điện tử",
"en": "E-invoice"
},
"required": {
"level": "public_digital_org",
"vi": "Chữ ký số của tổ chức (doanh nghiệp) – chứng thư số công cộng cấp cho tổ chức",
"en": "Digital signature of the organisation (public certificate issued to the company)"
},
"timestamp_recommended": true,
"ref": "Nghị định 123/2020/NĐ-CP Điều 10 khoản 7 điểm b, khoản 14 (sửa bởi NĐ 70/2025/NĐ-CP)",
"note": "Seller signs with the organisation’s digital signature (individual sellers: own or authorised person’s). Buyer’s signature is not required; some invoices (supermarket retail, fuel, stamps / tickets, tax-authority invoices per transaction) need no signature. See /v1/vn-einvoice.",
"verified": true,
"general": [
"An electronic signature is not denied legal effect only because it is electronic (Luật GDĐT Điều 23 khoản 1).",
"…"
],
"check_certificate": "/v1/vn-esign-rules?action=certificate",
"verify_pdf": "/v1/pdf-sign-verify",
"reviewed": "2026-11-16",
"review_cadence_days": 90,
"disclaimer": "Reference only, not legal advice; check the official text."
}
Use cases
- Tell HR or e-contract users which signature a labour contract needs
- Check that an invoice or contract was signed with a licensed Vietnamese CA
- Explain to foreign partners when their signatures are valid in Vietnam
- Build signature rules into a document workflow
FAQ
Is an OTP or drawn signature legally valid?
Yes, an e-signature is not denied legal effect just because it is electronic, but only a certified secure specialised signature or a digital signature equals a handwritten one (Law 20/2023 art. 23).
Who must sign an e-invoice?
The seller, with the organisation’s digital signature; the buyer’s signature is not required (Decree 123/2020 art. 10).
Does the certificate check include revocation?
No. It verifies the chain to the published Vietnamese roots and the dates; check OCSP / CRL at the CA before relying on a signature.
Related APIs
Hash Generator
Compute MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC32 of text or files in one call, as hex or base64, with optional HMAC signing.
B64Encode / Decode
Encode or decode text as Base64, Base64URL, hex, URL encoding, HTML entities, Unicode escapes, ROT13 or binary with one simple API call.
***Password Generator
Generate cryptographically secure random passwords (4–256 chars, up to 100 at once) or check a password’s strength, entropy and estimated crack time.