| 状态码 | 错误码 | 错误描述 | 解决方案 |
|---|---|---|---|
| 400 | ACQ.INVALID_PARAMETER | 参数无效 | 检查请求参数,修改后重新发起请求 |
| 400 | ACQ.SYSTEM_ERROR | 系统错误 | 重新发起请求 |
| 400 | ACQ.TRADE_NOT_EXIST | 查询的交易不存在 | 检查传入的交易号是否正确,修改后重新发起请求 |
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/trade/query' \
--header 'authorization: ALIPAY-SHA256withRSA app_id=$appid,timestamp=$now,nonce=$uuid,expired_seconds=600,sign=$sign' \
--header 'alipay-request-id: $requestid' \
--header 'Content-Type: application/json' \
--data-raw '{
"out_trade_no":"20150320010101001",
"trade_no":"2014112611001004680 073956707",
"query_options":[
"trade_settle_info"
]
}'{
"trade_no":"2013112011001004330000121536",
"out_trade_no":"6823789339978248",
"buyer_logon_id":"159****5620",
"trade_status":"TRADE_CLOSED",
"total_amount":88.88,
"buyer_pay_amount":8.88,
"point_amount":10,
"invoice_amount":12.11,
"send_pay_date":"2014-11-27 15:45:57",
"receipt_amount":"15.25",
"store_id":"NJ_S_001",
"terminal_id":"NJ_T_001",
"fund_bill_list":[
{
"fund_channel":"ALIPAYACCOUNT",
"amount":10,
"real_amount":11.21
}
],
"store_name":"证大五道口店",
"buyer_user_id":"2088101117955611",
"buyer_user_type":"PRIVATE",
"mdiscount_amount":"88.88",
"discount_amount":"88.88",
"ext_infos":"{\"action\":\"cancel\"}"
}