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_noDevice serial number
order_id✅ if type == "pos"Order ID
amountAmount (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-CodeMerchant identifier code (provided by TCONNECT)
Content-Typeapplication/json
AuthorizationBearer <access_token>

Body

FieldTypeRequiredDescription
datastringAES-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")