文档中心 > API类目 > 阿里体育API

alibaba.alisports.lianbei.xpos.pay (三方支付接口)

新零售线下健身场景三方支付接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param0 QingchengPayReqDTO 必须 入参
  • └ nego_price
  • String
  • 必须
  • 10000
  • 协商价格
  • └ qr_code
  • String
  • 必须
  • 231023
  • 付款码或会员码
  • └ request_id
  • String
  • 必须
  • 34896985984894
  • 幂等请求号
  • └ machine_id
  • String
  • 可选
  • 222
  • pos机编号
  • └ out_biz_id
  • String
  • 必须
  • 111111
  • 外部订单号
  • └ item_id
  • Number
  • 可选
  • 222
  • 商品Id
  • └ cashier_name
  • String
  • 必须
  • 张丽
  • 收银员姓名
  • └ cashier_id
  • String
  • 必须
  • 346753
  • 收银员Id
  • └ store_id
  • String
  • 必须
  • 333333
  • 门店Id

响应参数

名称 类型 示例值 描述
result QingchengXPosResult qingchengPaymentResult_result 返回结果
  • model
  • QingchengPayRespDTO
  • qingchengResultDto_model
  • 业务返回结果
  • └ checkout_id
  • String
  • 0
  • 交易支付单号ID
  • └ biz_order_id
  • Number
  • 0
  • 订单号
  • └ success
  • Boolean
  • true
  • 业务成功与否
  • └ current_pay_fee
  • Number
  • 3
  • 本次支付金额(分)
  • └ payment_order_id
  • String
  • 3
  • 付款凭证标识,统一支付层的单据id
  • └ result_status
  • Number
  • 3
  • 支付状态,1:成功,2:失败,3:状态未决
  • └ buyer_id
  • Number
  • buyerId
  • └ http_status_code
  • Number
  • 200
  • http状态码
  • └ msg_code
  • String
  • 0
  • 业务自定义的业务code
  • └ msg_info
  • String
  • 访问成功
  • 对应msg_code的消息
  • └ success
  • Boolean
  • true
  • 接口是否访问成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsLianbeiXposPayRequest req = new AlibabaAlisportsLianbeiXposPayRequest();
AlibabaAlisportsLianbeiXposPayRequest.QingchengPayReqDTO obj1 = new AlibabaAlisportsLianbeiXposPayRequest.QingchengPayReqDTO();
obj1.setNegoPrice("10000");
obj1.setQrCode("231023");
obj1.setRequestId("34896985984894");
obj1.setMachineId("222");
obj1.setOutBizId("111111");
obj1.setItemId(222L);
obj1.setCashierName("张丽");
obj1.setCashierId("346753");
obj1.setStoreId("333333");
req.setParam0(obj1);
AlibabaAlisportsLianbeiXposPayResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_lianbei_xpos_pay_response>
    <result>
        <model>
            <checkout_id>0</checkout_id>
            <biz_order_id>0</biz_order_id>
            <success>true</success>
            <current_pay_fee>3</current_pay_fee>
            <payment_order_id>3</payment_order_id>
            <result_status>3</result_status>
            <buyer_id></buyer_id>
        </model>
        <http_status_code>200</http_status_code>
        <msg_code>0</msg_code>
        <msg_info>访问成功</msg_info>
        <success>true</success>
    </result>
</alibaba_alisports_lianbei_xpos_pay_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部