Skip to main content

POS order details

Use this API to look up the information and payment status of a POS order you created. The data is fetched directly from the Payoo system.

GET
URLhttps://open-api.tingee.vn/v1/get-detail-pos-bill

Look up POS order details by billId.

Header Request​

HeaderRequiredDescription
x-client-id✓Partner identifier issued by TINGEE.
x-signature✓HMAC SHA512 authentication signature. For GET requests, the string to sign is {x-request-timestamp}:{}. See How to generate the signature.
x-request-timestamp✓Time the request is sent (format: yyyyMMddHHmmssSSS, UTC+7)

Query Parameters​

FieldTypeRequiredDescription
bankBinstring✓Always pass PAYOO.
vaAccountNumberstring✓Payoo POS device code.
billIdstring✓Order ID received from the Create a POS order API.

Code samples​

curl --location --request GET 'https://open-api.tingee.vn/v1/get-detail-pos-bill?bankBin=PAYOO&vaAccountNumber=POS00012345&billId=9f1c2b7e4a5d4c3b8e2f1a0b9c8d7e6f' \
--header 'accept: application/json' \
--header 'x-client-id: YOUR_CLIENT_ID' \
--header 'x-request-timestamp: 20240509154004003' \
--header 'x-signature: YOUR_SIGNATURE'

Sample Response​

{
"code": "00",
"message": "Success",
"data": {
"orderId": "9f1c2b7e4a5d4c3b8e2f1a0b9c8d7e6f",
"amount": 150000,
"expirationTime": "20261014153000",
"createTime": "20261014150000",
"status": 1,
"transactionCode": "PY123456789"
}
}
FieldTypeDescription
codestringResult code (00 = Success).
messagestringResponse message.
data.orderIdstringOrder ID (the same as billId).
data.amountnumberOrder amount.
data.expirationTimestringOrder expiration time.
data.createTimestringOrder creation time.
data.statusnumberOrder status according to Payoo's conventions.
data.transactionCodestringPayoo payment transaction code (once the order has been paid).

Common error codes​

CodeDescriptionHow to handle
1010The Merchant's account number was not foundCheck the vaAccountNumber and bankBin of the linked POS terminal.
1063Not supported for this bankThe API only applies to bankBin = "PAYOO".
400Error from Payoo or invalid datamessage contains the detailed error (e.g. billId does not exist at Payoo).
90, 91, 92, 97Request authentication error (timestamp, client-id, signature)See System error codes.
OthersOther errorsSee Error codes.