Skip to main content

List devices (Merchant)

This API returns all TINGEEBOX devices linked to a Merchant. It supports keyword search and pagination.

POST
URLhttps://open-api.tingee.vn/v1/device/get-paging

Query a Merchant's devices with full details.

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
filterstring✕Keyword for partial matching on device name, device code (uuid), Merchant phone number or employee name.
skipCountnumber✕Number of records to skip (pagination), minimum 0.
maxResultCountnumber✕Maximum number of records per page, from 1 to 2000 (larger values are capped at 2000). If omitted, all records are returned.
sortingstring✕Not supported yet. The list is always sorted newest device first (id descending).
merchantIdnumber✓ID of the sub-Merchant whose devices you want to list.
This API is only for Master Merchant accounts.
typestring✕Device type to filter by (per DeviceTypeEnum): app-tingee, tingee-box-f1, tingee-box-2a, tingee-box-2as, tingee-box-s1 (TingeeBox 3S), tingee-box-3ls, tingee-box-3pro, tingee-box-3vn, tingee-box-3vna, tingee-box-4ls, tingee-box-5s, tingee-box-5sa, tingee-box-6ls, tingee-box-6pro, tingee-box-6xs, vn-50, loa-pay, trusted-pay, pay-alert, tingee-box-3vn-mbb, tingee-box-3pro-mbb, tingee-box-3pro-x, tingee-box-max, tingee-box-8pro.

Code samples​

curl --location --request POST 'https://open-api.tingee.vn/v1/device/get-paging' \
--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 '{
"skipCount": 0,
"maxResultCount": 10,
"merchantId": 123456
}'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"totalCount": 1,
"items": [
{
"id": 1001,
"type": "tingee-box-3pro",
"uuid": "3PRO123456",
"name": "TINGEEBOX PRO 01",
"system": null,
"systemVersion": null,
"merchantId": 123456,
"masterMerchantId": 1000,
"merchantPhoneNumber": "0901234567",
"employeeName": null,
"status": "approved",
"useDate": "2025-01-01T10:00:00.000Z",
"expirationDate": "2026-01-01T10:00:00.000Z",
"warrantyDate": "2026-01-01T10:00:00.000Z",
"selectedBankNames": ["MBB"],
"securityCode": "123456",
"creationTime": "2024-12-20T08:00:00.000Z",
"assignedAgentId": null,
"simSerialNumber": null,
"simPhoneNumber": null,
"simProvider": null,
"simPlan": null,
"simExpirationDate": null,
"simActivationDate": null,
"shopDtos": [
{
"id": 101,
"name": "Cửa hàng ABC"
}
],
"merchantName": "Merchant ABC"
}
]
}
}
FieldTypeDescription
codestringResult code (00 = success).
messagestringResponse message.
data.totalCountnumberTotal number of records found.
data.itemsarrayList of devices.
data.items[].idnumberDevice ID in the TINGEE system.
data.items[].typestringDevice type (per DeviceTypeEnum).
data.items[].uuidstringDevice UUID.
data.items[].namestringDevice display name.
data.items[].systemstringDevice operating system (if any).
data.items[].systemVersionstringOperating system version (if any).
data.items[].merchantIdnumberID of the Merchant that owns the device.
data.items[].masterMerchantIdnumberID of the Master Merchant that manages the device.
data.items[].merchantPhoneNumberstringMerchant phone number associated with the device.
data.items[].employeeNamestringName of the employee in charge of the device.
data.items[].statusstringDevice status: waiting-progressing, approved, refuse.
data.items[].useDatestringStart-of-use date (date linked to the Merchant).
data.items[].expirationDatestringDevice service expiration date.
data.items[].warrantyDatestringWarranty expiration date.
data.items[].selectedBankNamesstring[]Banks the device is locked to (empty/null: not locked to any bank).
data.items[].securityCodestringCurrent device security code.
data.items[].creationTimestringTime the device was created in the system.
data.items[].assignedAgentIdnumberID of the agent assigned to the device (if any).
data.items[].agentNamestringName of the agent assigned to the device (only returned when assignedAgentId is present).
data.items[].simSerialNumberstringSerial number of the SIM in the device (if any).
data.items[].simPhoneNumberstringSIM phone number (if any).
data.items[].simProviderstringSIM carrier (if any).
data.items[].simPlanstringSIM plan (if any).
data.items[].simExpirationDatestringSIM expiration date (if any).
data.items[].simActivationDatestringSIM activation date (if any).
data.items[].shopDtosarrayShops (belonging to the Master Merchant) linked to the device.
data.items[].shopDtos[].idnumberShop ID.
data.items[].shopDtos[].namestringShop name.
data.items[].merchantNamestringName of the Merchant that owns the device.

Common error codes​

CodeDescriptionHow to handle
1133Permission deniedThis API is only for Master Merchant accounts; use the Master Merchant's API key.
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.