Push Payment to Devices
POST/openapi/v1/devices/payments/push
Đẩy thông tin thanh toán (s ố tiền + mã QR) trực tiếp xuống thiết bị vật lý tại quầy thu ngân.
Payload POS (Smart POS):
{
"serial_no": "00059012710",
"order_id": "0129210912",
"amount": 150000,
"type": "pos"
}
Payload Soundbox:
{
"serial_no": "SB-001234",
"amount": 150000,
"qr_string": "00020101021138550010A000000727...",
"type": "soundbox"
}
| Trường | Bắt buộc | Mô tả |
|---|---|---|
serial_no | ✅ | Số serial của thiết bị |
order_id | ✅ nếu type == "pos" | Mã hóa đơn |
amount | ✅ | Số tiền (VNĐ) |
qr_string | ✅ nếu type == "soundbox" | Chuỗi QR từ API Create QR |
type | ✅ | "pos" hoặc "soundbox" |
Request
Responses
- 200
Gửi lệnh xuống thiết bị thành công