beat365网址官网网站-365体育世界杯专用版-365体育注册送365

iPos接口接入报文规范

iPos接口接入报文规范

业务说明交易请求报文交易请求报文说明交易返回报文交易返回报文说明voucher_detail_list 优惠券信息 (JSONArray)promotion_detail 优惠活动信息 (JSON)promotion_detail 优惠活动信息fee_allowance_info 手续费补贴信息 (JSONString)cur_allowance_config_infos 手续费补贴活动详情 (JSONObject)业务说明支持的交易类型:4.2条码支付、4.3扫码支付、4.13jsapi支付、4.14微信小程序/APP支付、4.21聚合动态码支付、4.22小程序支付收银台下单

交易请求报文JSON:

{ "request_type": "barcode_query_request", "isspid": "39493002", "pos_id": "8888888888", "store_id": "8888888888", "pos_seq": "2018121400000005", "user_id": "user01", "system_id": "8888", "barcode_query_request": { "pay_type": "502", "org_pos_seq": "2018121400000001" }, "sign": "79CB18BC49A4D60C457506EA4EF27C14"}XML:

barcode_query_request 39493002 1511300001 1511300001 1511300000003 user01 8888 502 1511300000001 交易请求报文说明节点名称中文名称类型说明是否必填sign报文签名String(32)请求报文格式为JSON时必填计算签名方式请看2.1章节可选request_type请求类型String(32)固定值:barcode_query_request必填isspid商户号String(8)翼码商户号,由翼码提供必填pos_id终端号String(20)商户自定义终端号必填store_id门店号String(20)商户自定义门店号必填pos_seq查询请求流水号String(32)可空有值时必须同一个翼码商户号下唯一,不可重复使用,且大于12位可空user_id操作员标识String(20)操作员号可空system_id系统平台号String(4)由翼码提供必填barcode_query_request->pay_type支付类型String(3)502:支付宝503:微信支付515:微信小程序522:微信APP512:银联二维码516:数字人民币519:会员余额支付521:聚分期可空barcode_query_request->org_pos_seq支付请求流水号String(32)被查询的支付请求流水号必填交易返回报文JSON:

{ "response_type": "barcode_query_response", "isspid": "39493002", "pos_id": "8888888888", "pos_seq": "2018121400000005", "trans_time": "20181214143957", "pay_type": "502", "extend": "", "sys_seq": "0f041092d0ccc6ae", "buss_discount_amt": 0, "platform_discount_amt": 0, "discount_amt": 0, "mdiscount_amt": 0, "coupon_amt": 0, "mcard_amt": 0, "mcoupon_amt": 0, "point_amt": 0, "memo": "订单备注", "fund_freeze_stat": "", "freeze_time": "", "unfreeze_amt": "", "unfreeze_time": "", "alipay_res_info": { "trade_no": "2018121422001429700548119225", "out_trade_no": "0001056562600000122014", "atu_trade_no": "2018121422001429700548119225", "atu_out_trade_no": "0001056562600000122014", "buy_user_id": "", "buy_logon_id": "", "gmt_payment": "20181214135757", "total_fee": "1", "receipt_amount": "1", "invoice_amount": "1", "buyer_pay_amount": "1", "charge_amount": "1", "fee_allowance_info": "{\"receivable_fee_amt\":\"2\",\"actual_fee_amt\":\"1\",\"allowance_fee_amt\":\"1\"}", "fund_bill_list": [ { "amount": "1", "fund_channel": "ALIPAYACCOUNT" }, { "amount": "1", "fund_channel": "COUPON" } ], "voucher_detail_list": [ { "amount": "1000", "id": "2015102600073002039000002D5O", "memo": "学生专用优惠", "merchant_contribute": "900", "name": "XX超市5折优惠", "other_contribute": "100", "type": "ALIPAY_FIX_VOUCHER", "discount_goods_detail": [ { "goods_id": "STANDARD1026181538", "goods_name": "雪碧", "discount_amount": "10000", "voucher_id": "2015102600073002039000002D5O" } ] }, { "amount": "1000", "id": "2015102600073002039000002D5O", "memo": "学生专用优惠", "merchant_contribute": "900", "name": "XX超市5折优惠", "other_contribute": "100", "type": "ALIPAY_FIX_VOUCHER", "discount_goods_detail": [ { "goods_id": "STANDARD1026181538", "goods_name": "雪碧", "discount_amount": "10000", "voucher_id": "2015102600073002039000002D5O" } ] } ], "detail_error_code": "10000", "detail_error_desc": "Success" }, "wxpay_res_info": { "buyer_pay_amount": 1, "trade_no": "4200000196201812146252898537", "out_trade_no": "2018121400000002", "atu_trade_no": "4200000196201812146252898537", "atu_out_trade_no": "2018121400000002", "app_id": "wx5acb63e448b4fc22", "mch_id": "1241109502", "open_id": "oVTJstwEIdlt3ExaSCxF_cfdRADE", "is_subscribe": "N", "sub_openid": "", "sub_is_subscribe": "", "trade_type": "MICROPAY", "bank_type": "CFT", "total_fee": "1", "coupon_fee": "", "charge_amount": "0", "fee_allowance_info": "{\"receivable_fee_amt\":\"2\",\"actual_fee_amt\":\"1\",\"allowance_fee_amt\":\"1\"}", "gmt_payment": "20181214141132", "detail_error_code": "SUCCESS", "detail_error_desc": "OK", "settlement_total_fee": "1", "promotion_detail": { "promotion_detail": [ { "promotion_id": "109519", "name": "单品惠-6", "scope": "SINGLE", "type": "DISCOUNT", "amount": 5, "activity_id": "931386", "wxpay_contribute": 0, "merchant_contribute": 0, "other_contribute": 5, "goods_detail": [ { "goods_id": "a_goods1", "goods_remark": "商品备注", "quantity": 7, "price": 1, "discount_amount": 4 }, { "goods_id": "a_goods2", "goods_remark": "商品备注", "quantity": 1, "price": 2, "discount_amount": 1 } ] } ] } }, "wxapp_res_info": { "buyer_pay_amount": 1, "trade_no": "4200000196201812146252898537", "out_trade_no": "2018121400000002", "atu_trade_no": "4200000196201812146252898537", "atu_out_trade_no": "2018121400000002", "app_id": "wx5acb63e448b4fc22", "mch_id": "1241109502", "open_id": "oVTJstwEIdlt3ExaSCxF_cfdRADE", "is_subscribe": "N", "sub_appid": "wxa138a13aca591b95", "sub_openid": "oXI_E5KN-FJi1Hf65mWeiBF8fUlU", "sub_is_subscribe": "", "trade_type": "MICROPAY", "bank_type": "CFT", "total_fee": "1", "coupon_fee": "", "charge_amount": "0", "fee_allowance_info": "{\"receivable_fee_amt\":\"2\",\"actual_fee_amt\":\"1\",\"allowance_fee_amt\":\"1\"}", "gmt_payment": "20181214141132", "detail_error_code": "SUCCESS", "detail_error_desc": "OK", "settlement_total_fee": "1", "promotion_detail": { "promotion_detail": [ { "promotion_id": "109519", "name": "单品惠-6", "scope": "SINGLE", "type": "DISCOUNT", "amount": 5, "activity_id": "931386", "wxpay_contribute": 0, "merchant_contribute": 0, "other_contribute": 5, "goods_detail": [ { "goods_id": "a_goods1", "goods_remark": "商品备注", "quantity": 7, "price": 1, "discount_amount": 4 }, { "goods_id": "a_goods2", "goods_remark": "商品备注", "quantity": 1, "price": 2, "discount_amount": 1 } ] } ] } }, "wechatapp_res_info": { "buyer_pay_amount": 1, "trade_no": "4200000196201812146252898537", "out_trade_no": "2018121400000002", "atu_trade_no": "4200000196201812146252898537", "atu_out_trade_no": "2018121400000002", "app_id": "wx5acb63e448b4fc22", "mch_id": "1241109502", "open_id": "oVTJstwEIdlt3ExaSCxF_cfdRADE", "is_subscribe": "N", "sub_appid": "wxa138a13aca591b95", "sub_openid": "oXI_E5KN-FJi1Hf65mWeiBF8fUlU", "sub_is_subscribe": "", "trade_type": "MICROPAY", "bank_type": "CFT", "total_fee": "1", "coupon_fee": "", "charge_amount": "0", "fee_allowance_info": "{\"receivable_fee_amt\":\"2\",\"actual_fee_amt\":\"1\",\"allowance_fee_amt\":\"1\"}", "gmt_payment": "20181214141132", "detail_error_code": "SUCCESS", "detail_error_desc": "OK", "settlement_total_fee": "1", "promotion_detail": { "promotion_detail": [ { "promotion_id": "109519", "name": "单品惠-6", "scope": "SINGLE", "type": "DISCOUNT", "amount": 5, "activity_id": "931386", "wxpay_contribute": 0, "merchant_contribute": 0, "other_contribute": 5, "goods_detail": [ { "goods_id": "a_goods1", "goods_remark": "商品备注", "quantity": 7, "price": 1, "discount_amount": 4 }, { "goods_id": "a_goods2", "goods_remark": "商品备注", "quantity": 1, "price": 2, "discount_amount": 1 } ] } ] } }, "upay_res_info": { "trade_no": "20180504050741694554", "out_trade_no": "1805040000021", "atu_trade_no": "20180504050741694554", "atu_out_trade_no": "1805040000021", "buyer_pay_amount": "1", "total_fee": "1", "charge_amount": "0", "fee_allowance_info": "{\"receivable_fee_amt\":\"2\",\"actual_fee_amt\":\"1\",\"allowance_fee_amt\":\"1\"}" }, "ecny_res_info": { "trade_no": "20180504050741694554", "out_trade_no": "1805040000021", "buyer_pay_amount": "1", "total_fee": "1", "receipt_fee": "1", "charge_amount": "0", "gmt_payment": "20210205113225", "detail_error_code": "", "detail_error_desc": "", "order_status": "03" }, "balpay_res_info": { "trade_no": "20180504050741694554", "out_trade_no": "1805040000021", "total_fee": "25", "charge_amount": "0", "gmt_payment": "20230530105300", "member_id": "1542" }, "jfqpay_res_info": { "trade_no": "20180504050741694554", "out_trade_no": "1805040000021", "atu_trade_no": "20180504050741694554", "atu_out_trade_no": "1805040000021", "total_fee": "25", "charge_amount": "0", "gmt_payment": "20230530105300", "bank_code": "", }, "result": { "id": "0000", "comment": "交易成功" }, "sign": "79D928004531AE15DFA6AD7E9A6A2447"}XML:

barcode_query_response 39493002 123456789 000000000001 000000000244 20090405010104 502 2 2 0 0 0 0 0 0 订单备注 2018111522001429701012895360 1811150000001 2018111522001429701012895360 1811150000001 2088123456789012 502***@qq.com 1 1 1 1 0 [{手续费补贴信息(JOSN)}] 20181115085738 [{单品优惠信息(JOSN)}] 4001172001201604144821605495 1811150000002 4001172001201604144821605495 1811150000002 wx5acb63e448b4fc22 1241109502 oVTJstwEIdlt3ExaSCxF_cfdRADE N oVTJstwEIdlt3ExaSCxF_cfdRADE N MICROPAY CCB_DEBIT 1 0 0 [{手续费补贴信息(JOSN)}] 20181115090351 SUCCESS OK [{单品优惠信息(JOSN)}] 1 1 4001172001201604144821605495 1811150000002 4001172001201604144821605495 1811150000002 wx5acb63e448b4fc22 1241109502 oVTJstwEIdlt3ExaSCxF_cfdRADE N wxa138a13aca591b95 oXI_E5KN-FJi1Hf65mWeiBF8fUlU N MICROPAY CCB_DEBIT 1 0 0 [{手续费补贴信息(JOSN)}] 20181115090351 SUCCESS OK [{单品优惠信息(JOSN)}] 1 1 4001172001201604144821605495 1811150000002 4001172001201604144821605495 1811150000002 wx5acb63e448b4fc22 1241109502 oVTJstwEIdlt3ExaSCxF_cfdRADE N wxa138a13aca591b95 oXI_E5KN-FJi1Hf65mWeiBF8fUlU N MICROPAY CCB_DEBIT 1 0 0 [{手续费补贴信息(JOSN)}] 20181115090351 SUCCESS OK [{单品优惠信息(JOSN)}] 1 1 20180504050741694554 1805040000021 20180504050741694554 1805040000021 1 1 0 [{手续费补贴信息(JOSN)}] 20180504050741694554 1805040000021 1 1 1 0 20210205113225 03 20180504050741694554 1805040000021 25 0 20230530105300 1542 20180504050741694554 1805040000021 20180504050741694554 1805040000021 25 0 20230530105300 0000 成功 交易返回报文说明标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!

节点名称中文名称类型说明是否必填sign报文签名String(32)返回报文格式为JSON时必填计算签名方式请看2.1章节可选response_type返回类型String(32)固定值:barcode_query_response必填isspid商户号String(8)翼码商户号,由翼码提供必填pos_id终端号String(20)商户自定义终端号必填pos_seq查询请求流水号String(32)查询请求流水号,和请求报文相同可选sys_seq随机串号String(16)随机生成串号,仅用于日志跟踪用,不保存必填trans_time接口返回时间String(14)接口返回时间,格式:yyyyMMddHHmmss必填pay_type支付类型String(3)502:支付宝503:微信支付515:微信小程序522:微信APP512:银联二维码516:数字人民币519:会员余额支付521:聚分期当支付单为聚合动态码时,用户未扫码下单前为空可空extend扩展信息String扩展信息字段内容为json格式预留字段后续业务扩展使用可空buss_discount_amt商家优惠金额String(16)商家优惠金额,单位为分可空platform_discount_amt平台优惠金额String(16)平台优惠金额,单位为分可空discount_amt支付宝折扣券String(16)仅支付宝时返回,单位为分可空mdiscount_amt商户优惠券String(16)仅支付宝时返回,单位为分可空coupon_amt支付宝红包String(16)仅支付宝时返回,单位为分可空mcard_amt商户店铺卡String(16)仅支付宝时返回,单位为分可空mcoupon_amt商户红包String(16)仅支付宝时返回,单位为分可空point_amt支付宝积分String(16)仅支付宝时返回,单位为分可空memo订单备注String(128)返回支付请求时内容可空fund_freeze_stat资金冻结状态String(2)01:冻结02:解冻空表示无此类业务可空freeze_time冻结时间String(14)格式:yyyyMMddHHmmss空表示无此类业务可空unfreeze_amt解冻金额String(9)单位:分可空unfreeze_time解冻时间String(14)格式:yyyyMMddHHmmss可空result->id响应码String(4)0000:成功9998:等待付款,需要调用支付查询交易确认结果其它代表失败,错误信息说明见“响应码解释”字段必填result->comment响应码解释String(64)响应码对应中文注解,用于显示提示必填支付宝返回以下数据alipay_res_info->trade_no支付通道订单号String(64)直连为支付宝订单号间连为通道订单号可空alipay_res_info->out_trade_no支付通道商户单号String(64)直连为支付宝商户订单号间连为请求通道订单号可空alipay_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空alipay_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空alipay_res_info->buy_user_id买家支付宝用户号String(30)直连通道交易成功时候,必填可空alipay_res_info->buy_logon_id买家支付宝帐号String(100)直连通道交易成功时候,必填可空alipay_res_info->total_fee交易总金额String(16)直连通道交易成功时候,必填。单位为分,不支持小数点可空alipay_res_info->receipt_amount实收金额String(16)直连通道交易成功时候,必填可空alipay_res_info->invoice_amount交易中可给用户开具发票的金额String(16)可空可空alipay_res_info->buyer_pay_amount买家付款的金额String(16)直连通道交易成功时候,必填,单位为分可空alipay_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空alipay_res_info->fee_allowance_info手续费补贴信息StringJSONString格式,仅支持汇付通道交易详细参数见下表可空alipay_res_info->fund_bill_list->amount支付金额String(16)支付金额可空alipay_res_info->fund_bill_list->fund_channel支付渠道String(2)支付宝支付渠道说明使用xml报文时不支持,返回为空可空alipay_res_info->gmt_payment支付完成时间String(14)支付完成时间可空alipay_res_info->detail_error_code支付详细错误码String(48)可空alipay_res_info->detail_error_desc支付详细错误码说明String(64)可空alipay_res_info->voucher_detail_list单品优惠信息JSONArray本交易支付时使用的所有单品优惠信息,以JSON格式返回详细参数见下表可空微信支付返回以下数据wxpay_res_info->trade_no支付通道订单号String(64)直连为微信订单号间连为通道订单号可空wxpay_res_info->out_trade_no支付通道商户单号String(64)直连为微信商户订单号间连为请求通道订单号可空wxpay_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空wxpay_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空wxpay_res_info->app_id服务商公众号IDString(32)直连通道交易成功时候,必填可空wxpay_res_info->mch_id服务商商户号String(32)直连通道交易成功时候,必填可空wxpay_res_info->open_id用户相对服务商公众号标识String(128)直连通道交易成功时候,必填可空wxpay_res_info->is_subscribe是否已关注服务商公众帐号String(1)直连通道交易成功时候,必填Y-已关注N-未关注可空wxpay_res_info->sub_openid用户相对子商户公众号标识String(128)可空wxpay_res_info->sub_is_subscribe是否已关注子商户公众帐号String(1)Y-已关注N-未关注可空wxpay_res_info->trade_type交易类型String(16)直连通道交易成功时候,必填可空wxpay_res_info->bank_type付款银行String(16)直连通道交易成功时候,必填可空wxpay_res_info->total_fee总金额String(64)直连通道交易成功时候,必填可空wxpay_res_info->coupon_fee代金券金额String(64)直连通道交易成功时候,必填可空wxpay_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空wxpay_res_info->fee_allowance_info手续费补贴信息StringJSONString格式,仅支持汇付通道交易详细参数见下表可空wxpay_res_info->gmt_payment支付完成时间String(14)直连通道交易成功时候,必填可空wxpay_res_info->detail_error_code支付详细错误码String(48)直连通道交易成功时候,必填可空wxpay_res_info->detail_error_desc支付详细错误码说明String(128)直连通道交易成功时候,必填可空wxpay_res_info->promotion_detail单品优惠信息JSON本次交易支付的单品优惠信息,以JSON格式返回详细参数见下表可空wxpay_res_info->buyer_pay_amount买家实付金额String(16)直连通道交易成功时候,必填,单位为分可空wxpay_res_info->settlement_total_fee应结订单金额String(16)单位为分当订单使用了免充值型优惠券后返回该参数,应结订单金额=订单金额-免充值优惠券金额。可空微信小程序支付返回以下数据wxapp_res_info->trade_no支付通道订单号String(64)直连为微信订单号间连为通道订单号可空wxapp_res_info->out_trade_no支付通道商户单号String(64)直连为微信商户订单号间连为请求通道订单号可空wxapp_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空wxapp_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空wxapp_res_info->app_id服务商公众号IDString(32)直连通道交易成功时候,必填可空wxapp_res_info->mch_id服务商商户号String(32)直连通道交易成功时候,必填可空wxapp_res_info->open_id用户相对服务商公众号标识String(128)直连通道交易成功时候,必填可空wxapp_res_info->is_subscribe是否已关注服务商公众帐号String(1)直连通道交易成功时候,必填Y-已关注N-未关注可空wxapp_res_info->sub_appid子商户小程序APPIDString(32)可空wxapp_res_info->sub_openid用户相对子商户小程序APPID的标识String(128)直连通道交易成功时候,必填可空wxapp_res_info->sub_is_subscribe是否已关注子商户公众帐号String(1)直连通道交易成功时候,必填Y-已关注N-未关注可空wxapp_res_info->trade_type交易类型String(16)直连通道交易成功时候,必填可空wxapp_res_info->bank_type付款银行String(16)直连通道交易成功时候,必填可空wxapp_res_info->total_fee总金额String(64)直连通道交易成功时候,必填可空wxapp_res_info->coupon_fee代金券金额String(64)直连通道交易成功时候,必填可空wxapp_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空wxapp_res_info->fee_allowance_info手续费补贴信息StringJSONString格式,仅支持汇付通道交易详细参数见下表可空wxapp_res_info->gmt_payment支付完成时间String(14)直连通道交易成功时候,必填可空wxapp_res_info->detail_error_code支付详细错误码String(48)直连通道交易成功时候,必填可空wxapp_res_info->detail_error_desc支付详细错误码说明String(128)直连通道交易成功时候,必填可空wxapp_res_info->promotion_detail单品优惠信息JSON本次交易支付的单品优惠信息,以JSON格式返回详细参数见下表可空wxapp_res_info->buyer_pay_amount买家实付金额String(16)直连通道交易成功时候,必填,单位为分可空wxapp_res_info->settlement_total_fee应结订单金额String(16)单位为分当订单使用了免充值型优惠券后返回该参数,应结订单金额=订单金额-免充值优惠券金额。可空微信APP支付返回以下数据wechatapp_res_info->trade_no支付通道订单号String(64)直连为微信订单号间连为通道订单号可空wechatapp_res_info->out_trade_no支付通道商户单号String(64)直连为微信商户订单号间连为请求通道订单号可空wechatapp_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空wechatapp_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空wechatapp_res_info->app_id服务商公众号IDString(32)直连通道交易成功时候,必填可空wechatapp_res_info->mch_id服务商商户号String(32)直连通道交易成功时候,必填可空wechatapp_res_info->open_id用户相对服务商公众号标识String(128)直连通道交易成功时候,必填可空wechatapp_res_info->is_subscribe是否已关注服务商公众帐号String(1)直连通道交易成功时候,必填Y-已关注N-未关注可空wechatapp_res_info->sub_appid子商户微信应用APPIDString(32)可空wechatapp_res_info->sub_openid用户相对子商户微信应用APPID的标识String(128)直连通道交易成功时候,必填可空wechatapp_res_info->sub_is_subscribe是否已关注子商户公众帐号String(1)直连通道交易成功时候,必填Y-已关注N-未关注可空wechatapp_res_info->trade_type交易类型String(16)直连通道交易成功时候,必填可空wechatapp_res_info->bank_type付款银行String(16)直连通道交易成功时候,必填可空wechatapp_res_info->total_fee总金额String(64)直连通道交易成功时候,必填可空wechatapp_res_info->coupon_fee代金券金额String(64)直连通道交易成功时候,必填可空wechatapp_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空wechatapp_res_info->fee_allowance_info手续费补贴信息StringJSONString格式,仅支持汇付通道交易详细参数见下表可空wechatapp_res_info->gmt_payment支付完成时间String(14)直连通道交易成功时候,必填可空wechatapp_res_info->detail_error_code支付详细错误码String(48)直连通道交易成功时候,必填可空wechatapp_res_info->detail_error_desc支付详细错误码说明String(128)直连通道交易成功时候,必填可空wechatapp_res_info->promotion_detail单品优惠信息JSON本次交易支付的单品优惠信息,以JSON格式返回详细参数见下表可空wechatapp_res_info->buyer_pay_amount买家实付金额String(16)直连通道交易成功时候,必填,单位为分可空wechatapp_res_info->settlement_total_fee应结订单金额String(16)单位为分当订单使用了免充值型优惠券后返回该参数,应结订单金额=订单金额-免充值优惠券金额。可空银联二维码返回以下数据upay_res_info->trade_no支付通道订单号String(64)直连为银联订单号间连为通道订单号可空upay_res_info->out_trade_no支付通道商户单号String(64)直连为银联商户订单号间连为请求通道订单号可空upay_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空upay_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空upay_res_info->buyer_pay_amount买家实付金额String(16)直连通道交易成功时候,必填,单位为分可空upay_res_info->total_fee订单总金额String(9)单位为分标准银联/合利宝/星POS通道,交易成功时候,必填可空upay_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空upay_res_info->fee_allowance_info手续费补贴信息StringJSONString格式,仅支持汇付通道交易详细参数见下表可空数字人民币返回以下数据ecny_res_info->trade_no平台订单号String(64)直连通道交易成功时候,必填可空ecny_res_info->out_trade_no支付商户订单号String(64)直连通道交易成功时候,必填可空ecny_res_info->buyer_pay_amount买家付款的金额String(16)直连通道交易成功时候,必填,单位为分可空ecny_res_info->total_fee订单金额String(64)直连通道交易成功时候,必填可空ecny_res_info->receipt_fee实付金额String(64)直连通道交易成功时候,必填可空ecny_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空ecny_res_info->gmt_payment交易时间String(64)直连通道交易成功时候,必填可空ecny_res_info->order_status原始订单的状态String(64)01:订单创建,02:用户支付中,03:已关闭,04:部分退款,05:全部退款,06:交易成功可空ecny_res_info->detail_error_code通道原始应答码,直连通道交易成功时候String(64)直连通道交易失败时候可空ecny_res_info->detail_error_desc通道原始应答说明,直连通道交易成功时候String(64)直连通道交易失败时候可空会员余额支付返回以下数据balpay_res_info->trade_no支付平台订单号String(64)可空balpay_res_info->out_trade_no支付商户订单号String(64)可空balpay_res_info->total_fee订单总金额String(9)单位为分可空balpay_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空balpay_res_info->gmt_payment支付完成时间String(14)格式:yyyyMMddHHmmss可空balpay_res_info->member_id会员idString(9)可空聚分期返回以下数据jfqpay_res_info->trade_no支付平台订单号String(64)可空jfqpay_res_info->out_trade_no支付商户订单号String(64)可空jfqpay_res_info->atu_trade_noATU订单号String(64)支付宝/微信/银联订单号客户手机支付凭证上的订单号可空jfqpay_res_info->atu_out_trade_noATU商户订单号String(64)支付宝/微信/银联商户订单号客户手机支付凭证上的商户订单号可空jfqpay_res_info->total_fee订单总金额String(9)单位为分可空jfqpay_res_info->charge_amount交易手续费String(9)单位为分,交易成功时必填可空jfqpay_res_info->gmt_payment支付完成时间String(14)格式:yyyyMMddHHmmss可空jfqpay_res_info->bank_code发卡行编码String(20)可空标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!

voucher_detail_list 优惠券信息 (JSONArray)JSON节点类型说明是否必填范例idString(32)券id必填2015102600073002039000002D5OnameString(64)券名称必填xx超市5折优惠typeString(32)当前有三种类型:ALIPAY_FIX_VOUCHER - 全场代金券ALIPAY_DISCOUNT_VOUCHER - 折扣券ALIPAY_ITEM_VOUCHER - 单品优惠注:不排除将来新增其他类型的可能,商家接入时注意兼容性避免硬编码必填ALIPAY_FIX_VOUCHERamountString(16)优惠券面额,它应该会等于商家出资加上其他出资方出资,单位为分必填1000merchant_contributeString(16)商家出资(特指发起交易的商家出资金额,单位为分)可空900other_contributeString(16)其他出资方出资金额,可能是支付宝,可能是品牌商,或者其他方,也可能是他们的一起出资,单位为分可空100memoString(256)优惠券备注信息可空学生专用优惠discount_goods_detailArray单品信息必填discount_goods_detail->goods_idString(32)商品的编号必填apple-01discount_goods_detail->goods_nameString(256)商品名称必填ipaddiscount_goods_detail->discount_amountString(16)优惠金额,单位为分必填200000discount_goods_detail->voucher_idString(32)优惠券id必填2015102600073002039000002D5Ovoucher_detail_list 样例:

[ { "amount":"1000", "id":"2015102600073002039000002D5O", "memo":"学生专用优惠", "merchant_contribute":"900", "name":"XX超市5折优惠", "other_contribute":"100", "type":"ALIPAY_FIX_VOUCHER", "discount_goods_detail":[ { "goods_id":"STANDARD1026181538", "goods_name":"雪碧", "discount_amount":"10000", "voucher_id":"2015102600073002039000002D5O" } ] }, { "amount":"1000", "id":"2015102600073002039000002D5O", "memo":"学生专用优惠", "merchant_contribute":"900", "name":"XX超市5折优惠", "other_contribute":"100", "type":"ALIPAY_FIX_VOUCHER", "discount_goods_detail":[ { "goods_id":"STANDARD1026181538", "goods_name":"雪碧", "discount_amount":"10000", "voucher_id":"2015102600073002039000002D5O" } ] }]promotion_detail 优惠活动信息 (JSON)JSON节点类型说明是否必填范例promotion_detailArraypromotion_detail必填 promotion_detail 优惠活动信息JSON节点类型说明是否必填范例promotion_idString(32)券或者立减优惠id必填109519nameString(64)优惠名称可空单品惠-6scopeString(32)优惠范围GLOBAL - 全场代金券SINGLE - 单品优惠可空SINGLEtypeString(32)优惠类型COUPON - 代金券,需要走结算资金的充值型代金券,(境外商户券币种与支付币种一致)DISCOUNT - 优惠券,不走结算资金的免充值型优惠券,(境外商户券币种与标价币种一致)可空DISCOUNTamountNumber(16)优惠券面额,用户享受的优惠的金额必填5activity_idString(32)活动ID在微信商户后台配置的批次ID必填931386wxpay_contributeNumber(16)微信出资(特指由微信支付商户平台创建的优惠,出资金额等于本项优惠总金额,单位为分)可空0merchant_contributeNumber(16)商家出资(特指商户自己创建的优惠,出资金额等于本项优惠总金额,单位为分)可空0other_contributeNumber(16)其他出资方出资金额,单位为分可空5goods_detailArray单品列表可空goods_detail->goods_idString(32)商品编码必填a_goods1goods_detail->goods_remarkString(128)商品备注可选1001goods_detail->discount_amountNumber(16)商品优惠金额,单位为分必填100goods_detail->quantityNumber(10)商品数量必填1goods_detail->priceNumber(16)商品价格,单位为分如果商户有优惠,需传输商户优惠后的单价(例如:用户对一笔100元的订单使用了商场发的纸质优惠券100-50,则活动商品的单价应为原单价-50)必填528800promotion_detail 样例:

{ "promotion_detail": [ { "promotion_id": "109519", "name": "单品惠-6", "scope": "SINGLE", "type": "DISCOUNT", "amount": 5, "activity_id": "931386", "wxpay_contribute": 0, "merchant_contribute": 0, "other_contribute": 5, "goods_detail": [ { "goods_id": "a_goods1", "goods_remark": "商品备注", "quantity": 7, "price": 1, "discount_amount": 4 }, { "goods_id": "a_goods2", "goods_remark": "商品备注", "quantity": 1, "price": 2, "discount_amount": 1 } ] } ]}fee_allowance_info 手续费补贴信息 (JSONString)JSON节点类型说明是否必填范例receivable_fee_amtString商户应收手续费,单位:分必填2actual_fee_amtString商户实收手续费,单位:分必填1allowance_fee_amtString补贴手续费,单位:分必填1allowance_typeString补贴类型0:不补贴,为空默认1:补贴2:部分补贴3:全额补贴(优惠后)4:部分补贴(优惠后)必填2no_allowance_descString不补贴原因1:汇收款产品(HSK)银联二维码交易金额大于1000元不补贴2:额度用完3:不在有效期4:活动不存在5:手续费金额为0不补贴6:顶格优惠7:额度不足8:手续费后补9:未达到起始补贴金额可空2cur_allowance_config_infosJSONObject手续费补贴活动详情,详细参数见下表可空 cur_allowance_config_infos 手续费补贴活动详情 (JSONObject)JSON节点类型说明是否必填范例merchant_groupString商户号,通道侧商户号可空6666000123120000acct_idString门店可空sh002activity_idString活动号必填223402342activity_nameString活动描述可空开业大促statusString活动是否有效1:生效0:失效必填1total_limit_amtString活动总补贴额度,单位:分必填1000start_timeString活动开始时间,yyyyMMdd必填20220909end_timeString活动结束时间,yyyyMMdd必填20220911human_flagString是否人工操作N:自动Y:人工必填1allowance_sysString补贴方1:银行2:服务商3:汇来米必填1allowance_sys_idString补贴方ID,通道侧商户号必填6666000123120000is_delay_allowanceString补贴类型1:实补2:后补默认实补必填1is_shareString是不是共享额度可空market_idString自定义活动编号必填ISFE00232market_nameString自定义活动名称可空开业大促market_descString自定义活动描述可空新店开业大促pos_credit_limit_amtStringpos贷记卡补贴额度,单位:分必填500pos_debit_limit_amtStringpos借记卡补贴额度,单位:分必填200pos_limit_amtStringpos补贴额度,单位:分必填400qr_limit_amtString扫码补贴额度,单位:分必填100create_byString创建人必填Lg2022022201394910571create_timeString创建时间必填2022-04-14 22:00:30update_timeString更新时间必填2022-04-14 23:00:30