统一收单交易查询
开发环境
开发环境
POST
/v3/alipay/trade/query
alipay.trade
需要调用查询接口的情况:
当商户后台、网络、服务器等出现异常,商户系统最终未接收到支付通知;
调用支付接口后,返回系统错误或未知交易状态情况;
调用alipay.trade.pay,返回INPROCESS的状态;
调用alipay.trade.cancel之前,需确认支付状态;
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/trade/query' \
--header 'Content-Type: application/json' \
--data-raw ''
响应示例响应示例
200 - 示例 1
{
"bkagent_resp_info": {
"bindclrissr_id": "string",
"bindpyeracctbk_id": "string",
"bindtrx_id": "string",
"bkpyeruser_code": "string",
"estter_location": "string"
},
"enterprise_pay_info": {
"biz_info": "string",
"invoice_amount": "string",
"is_use_enterprise_pay": true
},
"hb_fq_pay_info": {
"fq_amount": "10.05",
"user_install_num": "3"
},
"trade_settle_info": {
"trade_settle_detail_list": [
{
"amount": "10.00",
"operation_serial_no": "2321232323232",
"operation_type": "replenish",
"ori_trans_in": "2088111111111111",
"ori_trans_out": "2088111111111111",
"trans_in": "2088111111111111",
"trans_out": "2088111111111111",
"operation_dt": {}
}
],
"trade_unsettled_amount": "1.1"
},
"alipay_store_id": "2015040900077001000100001232",
"alipay_sub_merchant_id": "2088301372182171",
"auth_trade_pay_mode": "CREDIT_PREAUTH_PAY",
"biz_settle_mode": "PERIOD",
"body": "Iphone6 16G",
"buyer_logon_id": "159****5620",
"buyer_open_id": "01501o8f93I3nJAGB1jG4ONxtxV25DCN3Gec3uggnC4CJU0",
"buyer_pay_amount": "8.88",
"buyer_user_id": "2088101117955611",
"buyer_user_name": "菜鸟网络有限公司",
"buyer_user_type": "PRIVATE",
"charge_amount": "8.88",
"charge_flags": "bluesea_1",
"charge_info_list": [
{
"charge_fee": "string",
"charge_type": "string",
"is_rating_on_switch": "string",
"is_rating_on_trade_receiver": "string",
"original_charge_fee": "string",
"sub_fee_detail_list": [
{
"charge_fee": "string",
"original_charge_fee": "string",
"switch_fee_rate": "string"
}
],
"switch_fee_rate": "string"
}
],
"credit_biz_order_id": "ZMCB99202103310000450000041833",
"credit_pay_mode": "creditAdvanceV2",
"discount_amount": "88.88",
"discount_goods_detail": "[{\"goods_id\":\"STANDARD1026181538\",\"goods_name\":\"雪碧\",\"discount_amount\":\"100.00\",\"voucher_id\":\"2015102600073002039000002D5O\"}]",
"ext_infos": "{\"action\":\"cancel\"}",
"fund_bill_list": [
{
"amount": "string",
"bank_code": "string",
"fund_channel": "string",
"fund_type": "string",
"real_amount": "string"
}
],
"hyb_amount": "10.24",
"industry_sepc_detail": "{\"registration_order_pay\":{\"brlx\":\"1\",\"cblx\":\"1\"}}",
"industry_sepc_detail_acc": "{\"registration_order_pay\":{\"brlx\":\"1\",\"cblx\":\"1\"}}",
"industry_sepc_detail_gov": "{\"registration_order_pay\":{\"brlx\":\"1\",\"cblx\":\"1\"}}",
"intact_charge_info_list": [
{
"actual_amount": "0.01",
"bill_type": "1",
"is_refund": true,
"out_biz_no": "2323232323",
"plan_amount": "0.02",
"product_name": "ALI_ESCROW",
"service_target": "2023232",
"service_type": "TRADE",
"status": "1",
"target_account_no": "20880156",
"target_user_id": "2088",
"gmt_pay": {}
}
],
"invoice_amount": "12.11",
"mdiscount_amount": "88.88",
"medical_insurance_info": "\"{\\\"medicareCardType\\\":\\\"1\\\",\\\"medicareCardHolderHiddenName\\\":\\\"**华\\\"}\"",
"open_id": "2088102122524333",
"out_trade_no": "6823789339978248",
"passback_params": "merchantBizType%3d3C%26merchantBizNo%3d2016010101111",
"pay_amount": "8.88",
"pay_currency": "CNY",
"payment_info_with_id_list": [
{
"type": "PAY",
"payment_ids": "[\"23232334343242424\",\"2323232323232\"]"
}
],
"point_amount": "10",
"receipt_amount": "15.25",
"receipt_currency_type": "DC",
"settle_amount": "2.96",
"settle_currency": "USD",
"settle_trans_rate": "30.025",
"settlement_id": "2018101610032004620239146945",
"store_id": "NJ_S_001",
"store_name": "证大五道口店",
"subject": "Iphone6 16G",
"terminal_id": "NJ_T_001",
"total_amount": "88.88",
"trade_no": "2013112011001004330000121536",
"trade_status": "TRADE_CLOSED",
"trans_currency": "TWD",
"trans_pay_rate": "0.264",
"voucher_detail_list": [
{
"amount": "string",
"id": "string",
"memo": "string",
"merchant_contribute": "string",
"name": "string",
"other_contribute": "string",
"other_contribute_detail": [
{
"contribute_amount": "string",
"contribute_type": "string"
}
],
"purchase_ant_contribute": "string",
"purchase_buyer_contribute": "string",
"purchase_merchant_contribute": "string",
"template_id": "string",
"type": "string"
}
],
"send_pay_date": {}
}
请求参数
Body 参数application/json
返回响应
修改于 2023-11-20 03:23:59