文档
测试

查询交易记录

GET
localhost:88/alipay/transactionQuery

接口描述

根据商户订单查询支付宝交易流水

请求参数

参数名
类型
描述
必填
tradeNo
String
商户订单号
必填

响应参数

参数名
类型
描述
必填
code
string
示例:10000
必填
msg
string
示例:Success
必填
subCode
object
示例:null
必填
subMsg
object
示例:null
必填
body
string
示例:{"alipay_trade_query_response":{"code":"10000","msg":"Success","buyer_logon_id":"iod***@sandbox.com","buyer_pay_amount":"0.00","buyer_user_id":"2088622957040320","buyer_user_type":"PRIVATE","invoice_amount":"0.00","out_trade_no":"202111011635088591455091023146414081","point_amount":"0.00","receipt_amount":"0.00","send_pay_date":"2021-11-01 16:35:54","total_amount":"10.00","trade_no":"202111...
必填
params
object
数据字典
必填
biz_content
string
示例:{"out_trade_no":"202111011635088591455091023146414081"}
必填
alipayStoreId
object
示例:null
必填
alipaySubMerchantId
object
示例:null
必填
authTradePayMode
object
示例:null
必填
buyerLogonId
string
示例:iod***@sandbox.com
必填
buyerPayAmount
string
示例:0.00
必填
buyerUserId
string
示例:2088622957040320
必填
buyerUserName
object
示例:null
必填
buyerUserType
string
示例:PRIVATE
必填
chargeAmount
object
示例:null
必填
chargeFlags
object
示例:null
必填
creditBizOrderId
object
示例:null
必填
creditPayMode
object
示例:null
必填
discountAmount
object
示例:null
必填
discountGoodsDetail
object
示例:null
必填
extInfos
object
示例:null
必填
fundBillList
object
示例:null
必填
hbFqPayInfo
object
示例:null
必填
industrySepcDetail
object
示例:null
必填
invoiceAmount
string
示例:0.00
必填
mdiscountAmount
object
示例:null
必填
openId
object
示例:null
必填
outTradeNo
string
示例:202111011635088591455091023146414081
必填
payAmount
object
示例:null
必填
payCurrency
object
示例:null
必填
pointAmount
string
示例:0.00
必填
receiptAmount
string
示例:0.00
必填
receiptCurrencyType
object
示例:null
必填
sendPayDate
string
示例:2021-11-01 16:35:54
必填
settleAmount
object
示例:null
必填
settleCurrency
object
示例:null
必填
settleTransRate
object
示例:null
必填
settlementId
object
示例:null
必填
storeId
object
示例:null
必填
storeName
object
示例:null
必填
subject
object
示例:null
必填
terminalId
object
示例:null
必填
totalAmount
string
示例:10.00
必填
tradeNo
string
示例:2021110122001440320501469656
必填
tradeSettleInfo
object
示例:null
必填
tradeStatus
string
示例:TRADE_CLOSED
必填
transCurrency
object
示例:null
必填
transPayRate
object
示例:null
必填
voucherDetailList
object
示例:null
必填
success
boolean
示例:true
必填
errorCode
string
示例:10000
必填

说明 / 示例

{ "code": "10000", "msg": "Success", "subCode": null, "subMsg": null, "body": "{\"alipay_trade_query_response\":{\"code\":\"10000\",\"msg\":\"Success\",\"buyer_logon_id\":\"iod***@sandbox.com\",\"buyer_pay_amount\":\"0.00\",\"buyer_user_id\":\"2088622957040320\",\"buyer_user_type\":\"PRIVATE\",\"invoice_amount\":\"0.00\",\"out_trade_no\":\"202111011635088591455091023146414081\",\"point_amount\":\"0.00\",\"receipt_amount\":\"0.00\",\"send_pay_date\":\"2021-11-01 16:35:54\",\"total_amount\":\"10.00\",\"trade_no\":\"2021110122001440320501469656\",\"trade_status\":\"TRADE_CLOSED\"},\"sign\":\"WrpBUr8OGxgttJc22kz69lqjnTU+E0b+sV5FHyXqCmm5BlhiXgLD5u6M/sqLEJnUeHkPDiLIEivutoWoWN0/Mvu78FLLWJLEupVP+IpJ2cdvaDISLTn0YDCMKMV+laOMUD9/QCaRkMwVtiuz5UH4YZi2H10iUxLuZduRK4s2GsJkGGbXFFND9JeS4Ms81bSQJet7+RTcayyWL+7h6SSPAIKa3S8M7VWHRbvYYHF9+yfgRTc6gRGA+HASvI+smnmT1246rwdTUuJBWKuV+NltazY4c21yNj9AuiEZKsK7VBl2evdUKo2SuL1x22nn3OFaUYVrR3gOfgLtN+ibNLtZSA==\"}", "params": { "biz_content": "{\"out_trade_no\":\"202111011635088591455091023146414081\"}" }, "alipayStoreId": null, "alipaySubMerchantId": null, "authTradePayMode": null, "buyerLogonId": "iod***@sandbox.com", "buyerPayAmount": "0.00", "buyerUserId": "2088622957040320", "buyerUserName": null, "buyerUserType": "PRIVATE", "chargeAmount": null, "chargeFlags": null, "creditBizOrderId": null, "creditPayMode": null, "discountAmount": null, "discountGoodsDetail": null, "extInfos": null, "fundBillList": null, "hbFqPayInfo": null, "industrySepcDetail": null, "invoiceAmount": "0.00", "mdiscountAmount": null, "openId": null, "outTradeNo": "202111011635088591455091023146414081", "payAmount": null, "payCurrency": null, "pointAmount": "0.00", "receiptAmount": "0.00", "receiptCurrencyType": null, "sendPayDate": "2021-11-01 16:35:54", "settleAmount": null, "settleCurrency": null, "settleTransRate": null, "settlementId": null, "storeId": null, "storeName": null, "subject": null, "terminalId": null, "totalAmount": "10.00", "tradeNo": "2021110122001440320501469656", "tradeSettleInfo": null, "tradeStatus": "TRADE_CLOSED", "transCurrency": null, "transPayRate": null, "voucherDetailList": null, "success": true, "errorCode": "10000" }