Skip to main content
Version: Next

Push Payment to Devices

POST /openapi/v1/devices/payments/push

Push payment information (amount + QR code) directly to physical devices at the checkout counter.

POS Payload (Smart POS):

{
"serial_no": "00059012710",
"order_id": "0129210912",
"amount": 150000,
"type": "pos"
}

Soundbox Payload:

{
"serial_no": "SB-001234",
"amount": 150000,
"qr_string": "00020101021138550010A000000727...",
"type": "soundbox"
}
FieldRequiredDescription
serial_no✅Device serial number
order_id✅ if type == "pos"Order ID
amount✅Amount (VND)
qr_string✅ if type == "soundbox"QR string from the Create QR API
type✅"pos" or "soundbox"
curl --location '<base_url>/openapi/v1/devices/payments/push' \
--header 'Partner-Code: YOUR_PARTNER_CODE' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsI…' \
--data '{
"data": ENCRYPTED_PAYLOAD
}'

Request​

Headers​

NameRequiredDescription
Partner-Code✅Merchant identifier code (provided by TCONNECT)
Content-Type✅application/json
Authorization✅Bearer <access_token>

Body​

FieldTypeRequiredDescription
datastring✅AES-256-CBC encrypted payload as Hexadecimal

Response​

200 — Command sent to device successfully​

FieldTypeDescription
messagestringConfirmation of command dispatch status (e.g. "Successfully pushed new payment to Soundbox")