Skip to main content

Query

Payment Query

Request URL

GET https://sandbox-th.lianlianpay-inc.com/gateway

Request Parameters

ParameterTypeLengthRequiredDescription
versionstring4truefixed value: v1
servicestring64truefixed values: llpth.payment.query
merchant_idstring18trueunique identifier for merchant assigned by LianLian, 8 digits prefix with '14'
merchant_order_idstring64truemerchant order id

Response Body

ParameterTypeLengthRequiredDescription
merchant_idstring18truemerchant_id in request
merchant_order_idstring64truemerchant_order_id in request
order_idstring18truelianlian bill id, one on one with merchant order id
order_statusstring2truesee status enums Payment Status
order_amountstring8,2trueorder_amount in request
order_currencystring3trueorder_currency in request
order_descstring256trueorder description
product_codestring64falsepayment product, see Payment Product first level
payment_methodstring64falsepayment method, see Payment Product second level
customerCustomer-falsepayer user info
productsList-falsepayer product info, see Product
create_timestring19truepayment bill create time, timezone with UTC+7(Asia/Bangkok)
complete_timestring19falsepayment bill complete time, timezone with UTC+7(Asia/Bangkok)

Request Sample

https://sandbox-th.lianlianpay-inc.com/gateway?version=v1&service=llpth.payment.query&merchant_id=142023010100009001&merchant_order_id=ORDER_202301010001

Response Sample

{
"code": 200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"order_status": "PS",
"order_amount": "88.99",
"order_currency": "THB",
"order_desc": "display your order info",
"product_code": "BANKCARD_PAY_ONLINE",
"payment_method": "CARD",
"customer": {
"merchant_user_id": "USER_0001",
"full_name": "Bruce Lee"
},
"create_time": "2023-01-01 13:19:02",
"complete_time": "2023-01-01 13:19:13"
},
"message": "Success",
"trace_id": "582090476275e0aa"
}

Curl Sample

curl -X GET \
-H 'Content-Type: application/json' \
-H 'sign-type: RSA' \
-H 'sign: ACXIbRDxK1ETQ51s4LEq1MkLQptK5nEnEG1eUykzz5oH+StkOYqZnNP9uaiNoaqJqdWP0CD3b0dHQWJGCiUx+3EpYE5FSujakMFnh0wL8GrdtJ7nA4+cDd4xSQHq5wBX5GnbEYnD7bXV3hEC9A0sBqx7Z87deXiuE+L0j35hTut/QFRvHOBMDvMfgO1OiPkNWmJ6jf20LrE3D4RJJru8o70aUM++lLOPPdbeghDXIYM/veHu+w3wU3nDY5kbsD/9IeaOE40qO/Tykyk2LeBbhpV1QNW/gqr0C7CEmt0IcYLKHkCvVieroGzmXZNyPxVglD0M2nxSeXFQ0SGcclqWTg==' \
-i https://sandbox-th.lianlianpay-inc.com/gateway?version=v1&service=llpth.payment.query&merchant_id=142023010100009001&merchant_order_id=ORDER_202301010001

Refund Query

Request URL

GET https://sandbox-th.lianlianpay-inc.com/gateway

Request Parameters

ParameterTypeLengthRequiredDescription
versionstring4truefixed value: v1
servicestring64truefixed values: llpth.refund.query
merchant_idstring18trueunique identifier for merchant assigned by LianLian, 8 digits prefix with '14'
merchant_refund_idstring64truemerchant refund id

Response Body

ParameterTypeLengthRequiredDescription
merchant_idstring18truemerchant_id in request
merchant_refund_idstring64truemerchant refund id
merchant_order_idstring64truemerchant_order_id in request
order_idstring18truelianlian bill id, one on one with merchant order id
refund_order_idstring18truelianlian refund order id
refund_amountstring8,2truerefund amount, up to two decimal
refund_currencystring3truerefund currency, supported Currency
refund_statusstring2truerefund status, see Refund Status
refund_reasonstring256falserefund reason
notify_urlstring256falserefund result webhook
create_timestring19truerefund create time, timezone with UTC+7(Asia/Bangkok)
complete_timestring19falserefund complete time, timezone with UTC+7(Asia/Bangkok)

Request Sample

https://sandbox-th.lianlianpay-inc.com/gateway?version=v1&service=llpth.refund.query&merchant_id=142023010100009001&merchant_refund_id=REFUND_202301010001

Response Sample

{
"code": 200000,
"data": {
"merchant_id": "142023010100009001",
"merchant_refund_id": "REFUND_202301010001",
"merchant_order_id": "ORDER_202301010001",
"order_id": "122023010100160021",
"refund_order_id": "122023010100160022",
"refund_status": "RS",
"refund_amount": "88.99",
"refund_currency": "THB",
"refund_reason": "order cancel",
"notify_url": "https://www.lianlianpay.co.th/sample/callback",
"create_time": "2023-01-01 13:19:02",
"complete_time": "2023-01-01 13:19:13"
},
"message": "Success",
"trace_id": "582090476275e0aa"
}

Curl Sample

curl -X GET \
-H 'Content-Type: application/json' \
-H 'sign-type: RSA' \
-H 'sign: ACXIbRDxK1ETQ51s4LEq1MkLQptK5nEnEG1eUykzz5oH+StkOYqZnNP9uaiNoaqJqdWP0CD3b0dHQWJGCiUx+3EpYE5FSujakMFnh0wL8GrdtJ7nA4+cDd4xSQHq5wBX5GnbEYnD7bXV3hEC9A0sBqx7Z87deXiuE+L0j35hTut/QFRvHOBMDvMfgO1OiPkNWmJ6jf20LrE3D4RJJru8o70aUM++lLOPPdbeghDXIYM/veHu+w3wU3nDY5kbsD/9IeaOE40qO/Tykyk2LeBbhpV1QNW/gqr0C7CEmt0IcYLKHkCvVieroGzmXZNyPxVglD0M2nxSeXFQ0SGcclqWTg==' \
-i https://sandbox-th.lianlianpay-inc.com/gateway?version=v1&service=llpth.refund.query&merchant_id=142023010100009001&merchant_refund_id=REFUND_202301010001