E-invoice
The E-invoice API group lets Merchants issue electronic invoices (e-invoices) directly from the TINGEE system through the supported providers: XCyber, HiLo and SInvoice.
Before you start
- Base URL:
https://uat-open-api.tingee.vn(UAT) ·https://open-api.tingee.vn(PROD) - Authentication: Every request must include the
x-client-idandx-request-timestampheaders and thex-signaturesignature (HMAC SHA512). See How to get an API Key & generate the signature. - Result: The API always returns HTTP
200; check thecodefield (00= success). See Error codes.
PUBLIC SANDBOX — E-INVOICE
View and try issuing standard Vietnamese VAT invoices from 4 providers: SInvoice, HiLo, XCyber, Viettel.
Flow
- Call List providers to see the supported providers.
- Call Create / Update account to connect your e-invoice provider account.
- Call Get invoice templates to see the invoice templates registered with the provider.
- Call Create draft invoice or Create and issue invoice, depending on your needs.
- Call Download invoice to get the PDF, or Send invoice email to the buyer.
Note
The provider and taxCode fields are optional for invoice operations — if you omit them, the system uses the default account.
E-invoice issuing flow
← Swipe to see more →
API list
Providers & Accounts
| Function | Method | Endpoint |
|---|---|---|
| List providers | POST | /v1/e-invoice/get-provider |
| List accounts | POST | /v1/e-invoice/get-paging-account |
| Create / Update account | POST | /v1/e-invoice/create-or-update-account |
| Delete account | POST | /v1/e-invoice/delete-account |
Invoices
| Function | Method | Endpoint |
|---|---|---|
| Create draft invoice | POST | /v1/e-invoice/create |
| Create and issue invoice | POST | /v1/e-invoice/create-and-issue |
| Download invoice | POST | /v1/e-invoice/download |
| Get invoice templates | POST | /v1/e-invoice/invoice-templates |
| Send invoice email | POST | /v1/e-invoice/send-email |
Purchase invoices
Automatically retrieve the business's purchase invoices from the General Department of Taxation. See Purchase invoices overview.
| Function | Method | Endpoint |
|---|---|---|
| Connect tax account | POST | /v1/e-invoice/input/connect |
| Disconnect tax account | POST | /v1/e-invoice/input/disconnect |
| Sync purchase invoices | POST | /v1/e-invoice/input/sync |
| List purchase invoices | POST | /v1/e-invoice/input/list |
| Purchase invoice details | POST | /v1/e-invoice/input/detail |
| Invoice view (PDF) | POST | /v1/e-invoice/input/preview-base64 |