When to Issue a Vietnamese E-invoice and How to Fix One
When a Vietnamese e-invoice must be issued (NĐ 254/2026, Điều 9) and how a wrong one is fixed: notice 04/SS, adjustment or replacement invoice.
Result
Press “Run” to see the result.
action=timing takes a transaction type (goods, export, services, staged, reconciliation, construction, real_estate, lending, insurance, taxi, healthcare, casino, lottery, ETC toll…; action=types lists all 27) and the event dates you know (delivery_date, customs_clearance_date, completion_date, payment_date, reconciliation_date, service_month…). It returns the rule with its article, the latest invoice date (exports: next working day after clearance, holidays included; reconciled services: the 7th of the next month or 7 days after the agreed period; airline agents: the 10th), the latest signing / sending date (next working day) and, with invoice_date, whether the invoice is on time.
action=fix takes the error (buyer_name, buyer_address, amount_in_words → notice only with Mẫu 04/SS-HĐĐT; tax_code, goods, quantity, unit_price, amount, tax_rate, tax_amount → adjustment or replacement), the invoice_kind (with_code, without_code, pos, registered_asset), buyer_type and previous_fix, and returns the steps, whether a written agreement is needed and the exact line "Điều chỉnh / Thay thế cho hóa đơn Mẫu số… ký hiệu… số… ngày…" filled from original. event covers trade discounts, returns, insurance refunds, cancelled prepaid services and settlement changes. action=fields lists the compulsory invoice contents.
Rules by date: from 1/7/2026 Nghị định 254/2026/NĐ-CP and Thông tư 91/2026/TT-BTC (which replaced NĐ 123/2020, NĐ 70/2025 and TT 32/2025); 1/6/2025–30/6/2026 the NĐ 70/2025 version. Read from the official gazette (Công báo). Reference only, with a confidence flag where the text needs interpretation.
Use this in your code
curl "https://apibox.io.vn/v1/vn-invoice-rules?action=timing&type=export&customs_clearance_date=2026-11-06&invoice_date=2026-11-10" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/vn-invoice-rules?action=timing&type=export&customs_clearance_date=2026-11-06&invoice_date=2026-11-10', {
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-invoice-rules?action=timing&type=export&customs_clearance_date=2026-11-06&invoice_date=2026-11-10",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-invoice-rules?action=timing&type=export&customs_clearance_date=2026-11-06&invoice_date=2026-11-10');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
What changed on 1 July 2026?
NĐ 254/2026/NĐ-CP and TT 91/2026/TT-BTC replaced NĐ 123/2020 and NĐ 70/2025. The timing rules stay close; a services deposit no longer triggers the invoice for any service (before, only a listed set), and new cases were added (consumer transaction data, night sales).
Can I cancel a wrong e-invoice?
No. A wrong invoice is either reported with Mẫu 04/SS-HĐĐT (minor errors such as the buyer name or address) or fixed with an adjustment or replacement invoice, after a written agreement with business buyers.
Does it check the invoice XML?
Not here: /v1/vn-einvoice parses and checks the XML. This endpoint gives the rules and deadlines; send the invoice symbol and number as original to get the correction line.