文档中心 > API类目 > 飞猪推广平台

alibaba.fliggy.cps.trade.try.pay (四海通协议代扣尝试支付)

四海通协议代扣尝试支付

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
si_hai_tong_try_auto_pay_request SiHaiTongTryAutoPayRequest 必须 请求体
  • └ activity_id
  • String
  • 必须
  • sht_xxxx
  • 四海通活动id
  • └ promotion_position_id
  • Number
  • 必须
  • 200000000000
  • 四海通推广位id
  • └ tp_order_id
  • Number
  • 必须
  • 1233412312
  • 订单id
  • └ fliggy_app_key
  • Number
  • 必须
  • 20000000
  • 四海通媒体id

响应参数

名称 类型 示例值 描述
is_success Boolean true 接口调用 成功/失败
result_code String 200 错误码
model SiHaiTongTryAutoPayResponse true 支付返回结果
  • └ trade_no
  • String
  • 1234
  • 支付流水号
result_message String cuowu 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaFliggyCpsTradeTryPayRequest req = new AlibabaFliggyCpsTradeTryPayRequest();
AlibabaFliggyCpsTradeTryPayRequest.SiHaiTongTryAutoPayRequest obj1 = new AlibabaFliggyCpsTradeTryPayRequest.SiHaiTongTryAutoPayRequest();
obj1.setActivityId("sht_xxxx");
obj1.setPromotionPositionId(200000000000L);
obj1.setTpOrderId(1233412312L);
obj1.setFliggyAppKey(20000000L);
req.setSiHaiTongTryAutoPayRequest(obj1);
AlibabaFliggyCpsTradeTryPayResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_fliggy_cps_trade_try_pay_response>
    <is_success>true</is_success>
    <result_code>200</result_code>
    <model>
        <trade_no>1234</trade_no>
    </model>
    <result_message>cuowu</result_message>
</alibaba_fliggy_cps_trade_try_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

返回
顶部