Pre-authorized cancel API
Pre-authorized cancel API
Endpoint
https://traderapi.lianlianpay.com/preauthCancel.htm
Request Parameters
Name
Required
Type
Description
oid_partner
Required
String(18)
The unique identification assigned to the merchant. E.g. 201304121000001004
platform
Optional
String(32)
platform
is used for sharing user info between multiple oid_partner
, this requires additional settings from LianLian side
sign_type
Required
String(3)
RSA
sign
Required
String
Signature value
user_id
Required
String(32)
The unique identification assigned to the user in the merchant’s system
pay_type
Required
String
F, authorization
api_version
Required
String
Fixed value, 1.0
money_order
Required
String(12)
Merchant order amount, range: 0.01 ~ 100,000,000.00, 2 decimal places are expected, in CNY
no_order
Required
String(32)
Merchant order No.
dt_order
Required
String(14)
Merchant order date. Format: yyyyMMddHHmmss, E.g. 20170801225714
oid_paybill
Optional
String(18)
Unique transaction No. in LianLian system. E.g. 2011030900001098
Sample Request
curl https://traderapi.lianlianpay.com/preauthCancel.htm\
-H "Content-type:application/json;charset=utf-8" \
-d '{
"user_id":"20130515094013",
"oid_partner":"201103171000000000",
"pay_type":"F",
"api_verion":"1.0",
"oid_paybill":"2013051416009982",
"dt_order":"2013051500001",
"money_order":"1000",
"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
Optional
String(32)
Merchant order No.
dt_order
Optional
String(14)
Merchant order date. Format: yyyyMMddHHmmss, E.g. 20170801225714
oid_paybill
Required
String(18)
Unique transaction No. in LianLian system. E.g. 2011030900001098
user_id
Required
String(32)
The unique identification assigned to the user in the merchant’s system
Sample Response
{
"ret_code":"0000",
"ret_msg":交易成功",
"oid_partner":"201103171000000000",
"oid_paybill":"2013051416009982",
"no_order":"2013051500001",
"dt_order":"20141231010101",
"user_id":"20130515094013",
"sign_type":"RSA",
"sign":"ZPZULntRpJwFmGNIVKwjLEF2Tze7bqs60rxQ22CqT5J1UlvGo575QK9z/+p+7E9cOoRoWzqR6xHZ6WVv3dloyGKDR0btvrdqPgUAoeaX/YOWzTh00vwcQ+HBtXE+vPTfAqjCTxiiSJEOY7ATCF1q7iP3sfQxhS0nDUug1LP3OLk="
}
Last updated