Skip to main content

TingeeBox devices

Manage TingeeBox devices: read the security code, show QR codes, and manage device–shop links.


Read security code​

API: POST /v1/device/read-security-code

const result = await client.device.readSecurityCode({ uuid: 'DEVICE_UUID' });

Parameters​

FieldTypeRequiredDescription
uuidstring✓Device UUID

Response​

Returns the standard { code, message } response, without data.


Read amount​

API: POST /v1/device/read-amount

const result = await client.device.readAmount({
uuid: 'DEVICE_UUID',
transactionId: 'TXN_001',
amount: 500000,
bankBin: '970418',
});

Parameters​

FieldTypeRequiredDescription
uuidstring✓Device UUID
transactionIdstring✓Transaction ID
amountnumber✓Amount
bankBinstring✓Bank BIN. Use BankBinEnum
firstDisplayTextstring✕Display line 1
secondDisplayTextstring✕Display line 2
thirdDisplayTextstring✕Display line 3
playSoundboolean✕Turn sound on/off

Response​

Returns the standard { code, message } response, without data.


Show QR code​

API: POST /v1/device/show-qr-code

const result = await client.device.showQrCode({
uuid: 'DEVICE_UUID',
vaAccountNumber: 'V1T199988811',
amount: 500000,
qrCode: 'QR_STRING...',
bankBin: '970418',
});

Parameters​

FieldTypeRequiredDescription
uuidstring✓Device UUID
amountnumber✓Amount to display
qrCodestring✓QR code string
vaAccountNumberstring✕Virtual account number
bankBinstring✕Bank BIN. Use BankBinEnum
bankNamestring✕Bank name. Use BankNameEnum
deviceTypestring✕Device type
firstTextstring✕Display line 1
secondTextstring✕Display line 2
thirdTextstring✕Display line 3
showTimenumber✕Display duration (seconds)
isStaticQrboolean✕Whether the QR is static
playSoundboolean✕Turn sound on/off
merchantIdnumber✕Merchant ID

Response​

Returns the standard { code, message } response, without data.


Generate and show dynamic QR​

API: POST /v1/device/generate-and-show-dynamic-qr-code

const result = await client.device.generateAndShowDynamicQrCode({
uuid: 'DEVICE_UUID',
vaAccountNumber: 'V1T199988811',
qrCodeType: 'dynamic-one-time-payment',
amount: 500000,
expireInMinute: 30,
});

Parameters​

FieldTypeRequiredDescription
uuidstring✓Device UUID
vaAccountNumberstring✓Virtual account number
qrCodeTypestring✓dynamic-one-time-payment or dynamic-recurring-payment
amountnumber✕Amount
bankBinstring✕Bank BIN. Use BankBinEnum
purposestring✕Payment description
expireInMinutenumber✕Expires after N minutes
extraInfostring✕Additional information
deviceTypestring✕Device type
firstTextstring✕Display line 1
secondTextstring✕Display line 2
thirdTextstring✕Display line 3
showTimenumber✕Display duration (seconds)
playSoundboolean✕Turn sound on/off
readAmountAfterPayboolean✕Read out the amount after payment
merchantIdnumber✕Merchant ID

Add device to shop​

API: POST /v1/device/add-device-to-shop

const result = await client.device.addDeviceToShop({
uuid: 'DEVICE_UUID',
securityCode: '123456',
appType: 'tingee-web',
shopIds: [1001],
});

Parameters​

FieldTypeRequiredDescription
uuidstring✓Device UUID
securityCodestring✓Device security code
appTypestring✓App type (e.g. tingee-web)
shopIdsnumber[]✕List of shop IDs
vaAccountNumbersstring[]✕List of VA numbers to link
merchantIdnumber✕Merchant ID
masterMerchantIdnumber✕Master Merchant ID

Response​

{
"code": "00",
"message": "Success",
"data": [
{ "type": "tingee-box-3pro", "uuid": "DEVICE_UUID" }
]
}
FieldTypeDescription
data[].typestringDevice type
data[].uuidstringDevice UUID

List devices​

API: POST /v1/device/get-paging

const result = await client.device.getPaging({
skipCount: 0,
maxResultCount: 10,
merchantId: 12345,
});

Parameters​

FieldTypeRequiredDescription
skipCountnumber✓Number of records to skip
maxResultCountnumber✓Maximum number of records
merchantIdnumber✓Merchant ID
filterstring✕Filter by keyword
sortingstring✕Sort order
typestring✕Filter by device type

Response​

Returns PagedResultDto<DeviceDto> with totalCount and an items array.


Devices linked to a Shop/VA​

API: POST /v1/device/get-devices-link-to-shop-or-va

const result = await client.device.getDevicesLinkToShopOrVa({
merchantId: 12345,
shopId: 1001,
vaAccountNumber: 'V1T199988811',
});

Parameters​

FieldTypeRequiredDescription
merchantIdnumber✓Merchant ID
shopIdnumber✓Shop ID
vaAccountNumberstring✓Virtual account number

Response​

{
"code": "00",
"message": "Success",
"data": [
{ "type": "tingee-box-3pro", "uuid": "DEVICE_UUID" }
]
}

Other methods​

MethodDescription
showDynamicQrCode(body)Show a dynamic QR on the device (same parameters as showQrCode)
showStaticQrCode(body)Show a static QR on the device (same parameters as showQrCode)
readPartnerSecurityCode(body)Read the partner security code (uuid, securityCode, merchantId?)
readAmountLinkToMerchant(body)Read the amount for a linked Merchant (same parameters as readAmount + merchantId)
updateShopDeviceLinkStatus(body)Update the device–shop link status
reset(query)Reset the device (uuid) — API docs