Get detail of a speaker device associated with a partner. This endpoint allows:
1.
Get detail of a speaker device
2.
Only devices registered to the partner can be get detail
3.
Device is locked if it is not active (active=false)
4.
Device is offline if it is not connected (connected=false)
5.
Device is unlinked if it is not assigned to any store (stores=[])
6.
The response includes information about the device and linked stores
Request
Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Path Params
Header Params
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api-test.loaheovang.com/api/v1/partner/device/' \
--header'x-client-id;' \
--header'Authorization: Bearer <token>'
Responses
🟢200OK
application/json
Result of the device detail operation
Body
Example
{"id":"123e4567-e89b-12d3-a456-426614174000","serial":"TV1001250416000214","deviceName":"Kitchen Speaker","active":true,"connected":false,"partnerClientId":"partner-123","rmCode":"SA-123","stores":[{"id":"123e4567-e89b-12d3-a456-426614174000","storeName":"Cafe Milano","ownerName":"Nguyen Van A","identityNumber":"123456789012","bankName":"Ngân hàng TMCP Quân đội (MB Bank)","bankCode":"MB","bankAccountNumber":"0123456789012","bankAccountName":"NGUYEN VAN A","phoneNumber":"0987654321","terminalID":"T123456789","terminalName":"MB-CafeMilano-001","staticQRCode":"00020101021238...[long QR string]","totalTransaction":"1250","totalAmount":"25000000"}]}