Skip to main content

List purchase invoices

Use this API to get the list of the business's purchase invoices (input invoices) synced from the General Department of Taxation, with filtering by seller, issue date, approval date, received date and status.

POST
URLhttps://open-api.tingee.vn/v1/e-invoice/input/list

Get the list of purchase invoices with pagination and filters.

Header Request​

HeaderRequiredDescription
Content-Type✓application/json
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Body Parameter​

FieldTypeRequiredDescription
merchantIdnumber~Merchant ID
(Required if you connect with a Master Merchant account).
accountIdnumber✕E-invoice account ID (from List accounts). Leave empty to use the default account.
pagenumber✕Page to retrieve, starting from 0. Default 0.
sizenumber✕Number of records per page (minimum 1). Default 50.
pageSize, currentnumber✕Additional pagination parameters, passed as-is to the provider. We recommend using page and size.
sellerTaxCodestring✕Filter by seller tax code.
buyerTaxCodestring✕Filter by buyer tax code. Defaults to the business's tax code.
invoiceNostring✕Filter by invoice number.
invoiceFromDate, invoiceToDatestring✕Filter by invoice issue date.
approvedFromDate, approvedToDatestring✕Filter by approval date.
receivedFromDate, receivedToDatestring✕Filter by received date.
invoicePropertynumber✕Invoice nature: 1 Original, 2 Replacement, 3 Adjustment, 4 Replaced, 5 Adjusted, 6 Deleted/cancelled.
approvalStatusnumber✕Approval status: 1 Pending approval, 2 Approved, 3 Rejected, 4 Cancelled, 5 Processed.
labelstring✕Filter by label.
note

Date filter fields use the yyyy-MM-dd HH:mm:ss.SSS format (e.g. 2026-10-01 00:00:00.000). You can also pass yyyy-MM-dd or ISO 8601 (e.g. 2026-10-01), and the system converts it to the format above; do not use dd/MM/yyyy as in the Sync API. For each date pair, the "from" value must be less than or equal to the "to" value.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/e-invoice/input/list' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE' \
--header 'Content-Type: application/json' \
--data '{
"page": 0,
"size": 50,
"invoiceFromDate": "2026-10-01 00:00:00.000",
"invoiceToDate": "2026-10-10 23:59:59.999"
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"totalCount": 1,
"items": [
{
"id": 123456,
"invoiceCode": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"fileHistoryId": "f9e8d7c6-b5a4-4321-9876-543210fedcba",
"invoiceNo": "0000125",
"invoicePattern": "1",
"invoiceSeries": "C26TAA",
"sellerName": "CÔNG TY TNHH ABC",
"sellerTaxCode": "0101234567",
"totalBeforeTax": 1000000,
"taxAmount": 80000,
"totalAfterTax": 1080000,
"invoiceDate": "2026-10-05",
"receivedDate": "2026-10-06",
"invoiceStatus": 1,
"approvalStatus": 1,
"tctStatus": 1,
"invoiceType": 1,
"invoiceProperty": 1,
"importMethod": 1,
"orderNo": null,
"note": null
}
]
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.totalCountnumberTotal number of invoices matching the conditions.
data.itemsarrayPurchase invoices on the current page.
data.items[].idnumberInvoice ID at the provider.
data.items[].invoiceCodestringInvoice identifier, used for the Details and PDF rendition APIs.
data.items[].fileHistoryIdstringInvoice file history ID at the provider.
data.items[].invoiceNostringInvoice number.
data.items[].invoicePatternstringInvoice template number (mẫu số).
data.items[].invoiceSeriesstringInvoice symbol (ký hiệu).
data.items[].sellerNamestringSeller name.
data.items[].sellerTaxCodestringSeller tax code.
data.items[].totalBeforeTaxnumberTotal amount before tax.
data.items[].taxAmountnumberTax amount.
data.items[].totalAfterTaxnumberTotal payment amount.
data.items[].invoiceDatestringInvoice issue date.
data.items[].receivedDatestringInvoice received date.
data.items[].approvalStatusnumberApproval status (see the approvalStatus parameter).
data.items[].invoicePropertynumberInvoice nature (see the invoiceProperty parameter).
data.items[].invoiceStatusnumberInvoice status (as provided by the provider).
data.items[].tctStatusnumberInvoice status at the tax authority.
data.items[].invoiceTypenumberInvoice type (as provided by the provider).
data.items[].importMethodnumberInvoice import method (as provided by the provider).
data.items[].orderNostringOrder number (if any).
data.items[].notestringNote (if any).

Common error codes​

CodeDescriptionHow to handle
2040Invalid time rangeThe start date must be less than or equal to the end date.
400Failed to get the list of purchase invoicesmessage contains the details.
2036The account is not registered for the purchase invoice serviceUpdate the account so that services contains input-invoice via the Create/Update account API.
2007The provider is not supportedPurchase invoices only support x-cyber provider accounts.
2032No default account is configuredPass accountId, or set an account as the default.
1057Account information not foundCheck accountId.
1095, 1096Master Merchant merchantId errorPass a merchantId belonging to the Master Merchant calling the API.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.