Payment Result Query API

Request

Endpoint

https://queryapi.lianlianpay.com/orderquery.htm

Request Parameters

Name

Required

Type

Description

oid_partner

Required

String(18)

The unique identification assigned to the merchant. E.g. 201304121000001004

sign_type

Required

String(3)

RSA

sign

Required

String

Signature value

no_order

Required

String(32)

Merchant order No. Optional if oid_paybill is present

dt_order

Required

String(14)

Merchant order date. Format: yyyyMMddHHmmss, E.g. 20170801225714

oid_paybill

Required

String(18)

Unique transaction No. in LianLian system. E.g. 2011030900001098. Optional if no_order is present

query_version

Optional

String(6)

1.0, regular response(default value) 1.1, return additional parameter memo, bank_name

Sample Request

curl https://queryapi.lianlianpay.com/orderquery.htm \
-H "Content-type:application/json;charset=utf-8" \
-d '{
        "oid_partner":"201103171000000000",
        "dt_order":"20130515094013",
        "no_order":"2013051500001",
        "sign_type":"RSA",
        "sign":"ZPZULntRpJwFmGNIVKwjLEF2Tze7bqs60rxQ22CqT5J1UlvGo575QK9z/+p+7E9cOoRoWzqR6xHZ6WVv3dloyGKDR0btvrdqPgUAoeaX/YOWzTh00vwcQ+HBtXE+vPTfAqjCTxiiSJEOY7ATCF1q7iP3sfQxhS0nDUug1LP3OLk="
    }'

Response

Parameters

Name

Required

Type

Description

ret_code

Required

String(4)

Return code, whether the request is handled successfully or not. Refer to return codes

ret_msg

Required

String(100)

Return message, description of ret_code, in Chinese

oid_partner

Required

String(18)

The unique identification assigned to the merchant. E.g. 201304121000001004

sign_type

Required

String(3)

RSA

sign

Required

String

Signature value

no_order

Required

String(32)

Merchant order No.

dt_order

Required

String(14)

Merchant order date. Format: yyyyMMddHHmmss, E.g. 20170801225714

oid_paybill

Required

String(18)

Unique transaction No. in LianLian system. E.g. 2011030900001098

money_order

Required

String(12)

Merchant order amount,2 decimal places are expected, in CNY

result_pay

Required

String

SUCCESS, payment is successful WAITING, waiting for payment result PROCESSING, payment is processing by banks REFUND, the payment is reversed FAILURE, the payment is failed This is the final transaction status. You may do delivery according to this field

settle_date

Optional

String(8)

Format YYYYMMDD. Returns when payment is successful

info_order

Optional

String(255)

Returns when info_order is sent in API requests

pay_type

Optional

String(1)

The payment method used in this transaction. 2, Quick payment - Debit card 3, Quick payment - Credit card P, New Authenticate Payment

bank_code

Optional

String(8)

Short code of banks

bank_name

Optional

String(32)

Name of banks, returns only when query_version is 1.1. This filed is not involved in signature

memo

Optional

String(255)

Payment failed information from bank side, returns only when query_version is 1.1. This filed is not involved in signature

card_no

Optional

String(15~19)

The masked number of used card. E.g. 622208*0000 . This filed is not involved in signature

Sample Response

{
    "oid_partner":"201103171000000000", 
    "dt_order":"20130515094013", 
    "no_order":"2013051500001", 
    "result_pay":"SUCCESS", 
    "oid_paybill":"2013051500001",
    "money_order":"49.65", 
    "settle_date":"20130515", 
    "info_order":"用户13958069593购买了3桶羽毛球", 
    "pay_type":"2", 
    "bank_code":"01020000", 
    "sign_type ":"RSA", 
    "sign":"ZPZULntRpJwFmGNIVKwjLEF2Tze7bqs60rxQ22CqT5J1UlvGo575QK9z/+p+7E9cOoRoWzqR6xHZ6WVv3dloyGKDR0btvrdqPgUAoeaX/YOWzTh00vwcQ+HBtXE+vPTfAqjCTxiiSJEOY7ATCF1q7iP3sfQxhS0nDUug1LP3OLk="
    }

Last updated