TCONNECT
Blog

E-invoices under Decree 70/2025/ND-CP: what developers need to know

Decree 70/2025/ND-CP replaces Circular 78 from June 2025. Learn the key changes and how to integrate an e-invoice API in line with current rules.

T
TCONNECT Team August 10, 2025· 5 min read

Decree 70/2025/ND-CP (effective 1 June 2025) replaces Circular 78/2021/TT-BTC and is the current legal instrument governing the use of e-invoices in Vietnam.

The biggest difference: Decree 70 raises the legal standing from a circular to a decree, and updates the rules to match the realities of large-scale e-invoice rollout after several years.


Key changes developers need to know

TopicBefore (Circular 78)Now (Decree 70)
Invoice issuance timingAt the moment goods/services are providedUnchanged, with clearer rules for special cases
Buyer tax codeRequired for organizationsRequired, with added real-world validation
Adjusting/canceling invoicesHad a processProcess made clearer
Invoice retentionAt least 10 yearsUnchanged
Connection to the tax authorityVia MISA, VNPT, etc.Unchanged, with added sync frequency requirements

E-invoice issuance flow through the TCONNECT API

[Hệ thống bán hàng của bạn]
         │
         ▼
POST /openapi/v1/einvoice/create   ──►  [TConnect API]
         │                                      │
         │                         ┌────────────┴────────────┐
         │                    [Xác thực dữ liệu]     [Gửi cơ quan thuế]
         │                         │
         │◄────── invoice_no + pdf_url ──────────┘
         │
[Gửi hóa đơn cho khách hàng]

Step 1: Prepare the invoice data

Under Decree 70, a valid e-invoice needs:

invoice_data = {
    // Thông tin người bán (từ cấu hình merchant TConnect)
    seller: {
        tax_code: "0123456789",
        name: "CÔNG TY TNHH ABC",
        address: "123 Nguyễn Huệ, Q.1, TP.HCM"
    },
 
    // Thông tin người mua
    buyer: {
        name: "CÔNG TY CP XYZ",
        tax_code: "9876543210",    // Bắt buộc với doanh nghiệp
        address: "456 Lê Lợi, Q.3, TP.HCM",
        email: "[email protected]"
    },
 
    // Thông tin hóa đơn
    invoice_date: "2025-08-10",   // ISO 8601
    invoice_type: "01GTKT",       // Hóa đơn giá trị gia tăng
    currency: "VND",
    exchange_rate: 1,
 
    // Chi tiết hàng hóa/dịch vụ
    items: [
        {
            line_no: 1,
            item_name: "Phí sử dụng API thanh toán tháng 7/2025",
            unit: "Tháng",
            quantity: 1,
            unit_price: 2000000,
            vat_rate: 10,          // 10% theo luật hiện hành
            amount_before_vat: 2000000,
            vat_amount: 200000,
            amount: 2200000
        }
    ],
 
    // Tổng hóa đơn
    total_amount_before_vat: 2000000,
    total_vat_amount: 200000,
    total_amount: 2200000,
    total_amount_in_words: "Hai triệu hai trăm nghìn đồng chẵn",
 
    // Liên kết đơn hàng (để đối soát)
    reference_order_id: "ORDER_2025_07_001"
}

Step 2: Issue the invoice

function create_invoice(base_url, partner_code, access_token, aes_key, invoice_data):
    encrypted = encrypt_payload(invoice_data, aes_key)
 
    POST {base_url}/openapi/v1/einvoice/create
        body: { data: encrypted }
        headers:
            Authorization: "Bearer {access_token}"
            Partner-Code: partner_code
 
    result = decrypt_response(response.data, aes_key)
 
    return {
        invoice_no:   result.invoice_no,    // Số hóa đơn
        invoice_code: result.invoice_code,  // Ký hiệu hóa đơn
        pdf_url:      result.pdf_url,       // Link PDF
        xml_url:      result.xml_url,       // Link XML (gốc điện tử)
        status:       result.status         // ISSUED / PENDING_CQT
    }

Step 3: Send the invoice to the customer

Once issued, send the invoice by email:

function send_invoice_email(invoice_no, customer_email, pdf_url):
    // Gửi email với link PDF hoặc đính kèm file
    send_email(
        to:      customer_email,
        subject: "Hóa đơn điện tử số {invoice_no}",
        body:    """
            Kính gửi Quý khách,
 
            Vui lòng tải hóa đơn điện tử tại: {pdf_url}
 
            Hóa đơn này được phát hành theo quy định của Nghị định 70/2025/NĐ-CP.
        """
    )

Adjusting and canceling invoices

Under Decree 70, there are two ways to handle an incorrect invoice:

Adjustment (when the invoice has been sent to the tax authority)

function adjust_invoice(base_url, partner_code, access_token, aes_key,
                        original_invoice_no, adjustment_data):
    payload = {
        original_invoice_no: original_invoice_no,
        adjustment_type:     "INCREASE",  // hoặc "DECREASE"
        reason:              "Điều chỉnh số lượng theo xác nhận của khách hàng",
        items:               adjustment_data.items
    }
    POST /openapi/v1/einvoice/adjust

Cancellation (when it has not been sent to the tax authority yet, or cancellation is permitted)

function cancel_invoice(base_url, partner_code, access_token, aes_key,
                        invoice_no, reason):
    payload = {
        invoice_no: invoice_no,
        reason:     reason
    }
    POST /openapi/v1/einvoice/cancel

Automating invoices after payment

The most common pattern: issue the invoice automatically when a successful payment IPN comes in.

// IPN endpoint: POST /webhook/ipn
function ipn_handler(request):
    body = parse_json(request)
    txn = decrypt_response(body.data, AES_KEY)
 
    if txn.status == "SUCCESS":
        order = get_order(txn.order_id)
 
        // Phát hành hóa đơn tự động
        invoice = create_invoice(
            invoice_data = build_invoice_from_order(order)
        )
 
        // Cập nhật đơn hàng
        mark_order_paid(order.id, invoice.invoice_no)
 
        // Gửi email hóa đơn
        send_invoice_email(
            invoice.invoice_no,
            order.customer_email,
            invoice.pdf_url
        )
 
    return { status: "ok" }

Important notes

Invoice issuance timing: Under Decree 70, the invoice must be issued at the moment goods or services are provided, not when payment is received. For SaaS and subscriptions, this is the first day of the service period.

Mandatory 10-year retention: Do not store only the PDF link. Keep the original XML file too, since that is the original e-invoice under the law.

Verify tax codes: Before issuing an invoice to a business, use TCONNECT's Tax Code Lookup API to confirm it is valid.


Conclusion

Decree 70/2025/ND-CP does not change much technically compared with Circular 78, but it raises the legal standing and clarifies many processes. Integrating the e-invoice API with TCONNECT keeps you compliant without the overhead of managing a direct connection to the tax authority yourself.

Topics
e-invoicenghị-định-70hóa-đơn-điện-tửcompliance

Start integrating today

Free sandbox · Full API docs · Technical support