Provider invoice statuses
1Invoice
| Status code | Status name |
|---|---|
| 0 | Original |
| 1 | Cancelled |
| 2 | Adjusted |
| 3 | Replaced |
| 4 | Explanation |
| 5 | Being replaced |
| 6 | Being adjusted |
one-invoice (1Invoice)
| Status code | Status name |
|---|---|
| 0 | Original |
| 1 | Cancelled |
| 2 | Adjusted |
| 3 | Replaced |
| 4 | Explanation |
| 5 | Being replaced |
| 6 | Being adjusted |
FPT
| Status code | Status name |
|---|---|
| 1 | Awaiting numbering |
| 2 | Awaiting approval |
| 3 | Approved |
| 4 | Cancelled |
Viettel
| Status code | Status name |
|---|---|
| 1 | Original invoice |
| 3 | Replacement invoice |
| 5 | Adjustment invoice |
| 7 | Deleted invoice |
| 9 | Amount adjustment invoice |
Tax authority response statuses
1Invoice
| Status code | Status name |
|---|---|
| 0 | Awaiting approval |
| 1 (Sign allowed) | Awaiting signature |
| 2 | Signed |
| 3 | Sent |
| 4 | Success |
| 5 | Error |
| 6 | Signing |
one-invoice (1Invoice)
| Status code | Status name |
|---|---|
| 0 | Awaiting approval |
| 1 (Sign allowed) | Awaiting signature |
| 2 | Signed |
| 3 | Sent |
| 4 | Success |
| 5 | Error |
| 6 | Signing |
FPT
Note: an unsigned invoice will not have a tax authority status
| Status code | Status name |
|---|---|
| 0 | Awaiting sending to tax authority |
| 1 | Sent to tax authority |
| 2 | Sending failed (invoice without a valid code) |
| 8 | Validity check |
| 9 | Invalidity check |
| 10 | Code issued (valid coded invoice issued a code by the tax authority) |
Viettel
| Status code | Status name |
|---|---|
| INVOICE_HAS_CODE_NOT_SENT | Not sent to tax authority (invoice with tax authority code) |
| INVOICE_NO_CODE_NOT_SENT | Not sent to tax authority (invoice without tax authority code) |
| INVOICE_NO_CODE_SENT | Sent to tax authority (invoice without tax authority code) |
| INVOICE_HAS_CODE_SENT | Sent to tax authority (invoice with tax authority code) |
| INVOICE_NO_CODE_APPROVED | Accepted by tax authority |
| INVOICE_HAS_CODE_APPROVED | Code issued by tax authority |
| INVOICE_HAS_CODE_DIS_APPROVED | Rejected by tax authority (invoice with tax authority code) |
| INVOICE_NO_CODE_DIS_APPROVED | Rejected by tax authority (invoice without tax authority code) |
Some common errors
| Code/Error code | Description | Resolution |
|---|---|---|
88 | sid already existed previously | Change the sid |
DuplicateInvoiceRefID | sid already existed previously | Change the sid |
TokenExpiredCode | Token has expired | Call the token API again |
InvoiceTemplateNotExist | Invoice template does not exist | The serial does not exist in the system |
SignSoftDream78Exception | HSM digital signing error | |
InvoiceDuplicated | Duplicate invoice - the invoice has already been issued |