提供已成功接入T-Linx的第三方开发者单应用的所有交易数据查询
请求说明
http请求方式: post
http://api.tlinx.cn/out/traderecord?pass_token=pass_token
参数说明
参数 |
是否必须 |
说明 |
pass_token |
是 |
获取到的访问凭证 |
pnum |
否 |
当前页数,默认为1 |
psize |
否 |
每页显示数,默认为10 |
stime |
否 |
开始时间(格式:2014-04-05) |
etime |
否 |
结束时间(格式:2014-04-05) |
返回说明
正常情况下,T-Linx会返回下述JSON数据包给开发者:
{
"ret":"0",
"msg":"ok",
"errcode":"0",
"data":{
"pages":{
"recordCount":"2",
"pagesize":"10",
"pageNumber":"1",
"totalpage":"1"
},
"list":[
{
"orderid":"1111111111111111111",
"tradeno":"000000000000000",
"tradedetail":"",
"tradetype":"消费",
"trstatus":"1",
"payname":"现金支付",
"tramount":"100.00",
"isproof":"0",
"prooftype":"",
"proofid":"",
"prcontent":"",
"realamount":"100.00",
"tradedate":"2014-10-30 09:19:16",
"revokedate":"",
"mlamount":"0.00",
"oldorderid":"",
"notpriamount":"0.00",
"gjamount":"0.00"
},
{
"orderid":"2222222222222222222",
"tradeno":"000000000000000",
"tradedetail":"",
"tradetype":"消费撤销",
"trstatus":"1",
"payname":"现金支付",
"tramount":"100.00",
"isproof":"0",
"prooftype":"",
"proofid":"",
"prcontent":"",
"realamount":"-100.00",
"tradedate":"2014-10-30 09:19:16",
"revokedate":"2014-10-30 09:19:16",
"mlamount":"0.00",
"oldorderid":"11111111111111111111",
"notpriamount":"0.00",
"gjamount":"0.00"
}
]
}
}
参数 |
说明 |
ret |
标识(值为0或1,为0表示当前没有错误,为1表示当前有错误) |
msg |
错误描述 |
errcode |
错误代码 |
data |
数据结果集 |
data/pages |
分页数据 |
data/recordCount |
记录总数 |
data/pagesize |
每页显示的数量 |
data/pageNumber |
当前页 |
data/totalpage |
页码总数 |
data/list |
参数 |
说明 |
orderid |
交易订单号 |
tradeno |
第三方交易号 |
tradedetail |
交易明细(若有值则返回JSON数据包,否则为空字符)
list |
参数 |
说明 |
name |
商品名称 |
url |
商品链接 |
num |
商品数量 |
price |
商品价格 |
|
|
tradetype |
交易类型(消费/消费撤销) |
trstatus |
交易状态(0支付失败1支付成功2未支付) |
payname |
支付方式名称(如:现金支付、支付宝支付、微信支付、百度支付等) |
tramount |
交易金额 |
isproof |
是否使用优惠凭证(1是0否) |
prooftype |
优惠凭证类型(1优惠券2会员卡) |
proofid |
优惠凭证编号 |
prcontent |
优惠凭证权益 |
realamount |
实际交易金额(交易金额-卡券优惠金额-抹零优惠金额-改价优惠金额) |
tradedate |
交易时间 |
revokedate |
撤销时间 |
mlamount |
抹零优惠金额 |
oldorderid |
原交易订单号(交易撤销时有值) |
notpriamount |
不参与优惠金额 |
gjamount |
改价优惠金额 |
|