文档中心 > API类目 > 飞猪-菲住联盟

alitrip.fz.card.out.book (菲住三方售卡接口)

外部平台购买辅营商品(会员卡)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_out_book_order_request OutBookOrderRequest 可选 入参
  • └ contact_phone
  • String
  • 可选
  • 15080370736
  • 下单手机号,用于注册会员的手机号
  • └ create_order_time
  • String
  • 可选
  • 2021-06-0816:28:18
  • 下单时间
  • └ ip
  • String
  • 可选
  • 11.22.33.44
  • 终端ip
  • └ out_channel_code
  • String
  • 可选
  • CHANNEL_FULU
  • 外部渠道编码
  • └ out_channel_id
  • Number
  • 可选
  • 1
  • 外部渠道id
  • └ out_order_id
  • String
  • 可选
  • 1042106081628488156150
  • 外部订单号
  • └ pay_channel
  • Number
  • 可选
  • 1
  • 支付渠道
  • └ pay_time
  • String
  • 可选
  • 2021-06-08 16:28:19
  • 支付时间
  • └ product_type
  • Number
  • 可选
  • 5
  • 商品类型
  • └ user_name
  • String
  • 可选
  • 哈哈
  • 用户姓名
  • └ user_nick
  • String
  • 可选
  • 哈哈
  • 用户昵称

响应参数

名称 类型 示例值 描述
result OutBookOrderResponse 出参
  • └ fh_code
  • String
  • 0
  • 返回码
  • └ fh_msg
  • String
  • ""
  • 返回信息
  • └ fh_success
  • Boolean
  • true
  • 是否执行成功
  • out_buy_member_card_product_v_o
  • OutBuyMemberCardProductVo
  • 数据
  • └ effective_time
  • String
  • 2021-11-11 00:00:00
  • 会员生效时间
  • └ expire_time
  • String
  • 2021-11-11 00:00:00
  • 会员到期时间
  • └ fz_order_id
  • Number
  • 123
  • 菲住订单号
  • └ member_id
  • Number
  • 123
  • 会员卡号

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripFzCardOutBookRequest req = new AlitripFzCardOutBookRequest();
AlitripFzCardOutBookRequest.OutBookOrderRequest obj1 = new AlitripFzCardOutBookRequest.OutBookOrderRequest();
obj1.setContactPhone("15080370736");
obj1.setCreateOrderTime("2021-06-0816:28:18");
obj1.setIp("11.22.33.44");
obj1.setOutChannelCode("CHANNEL_FULU");
obj1.setOutChannelId(1L);
obj1.setOutOrderId("1042106081628488156150");
obj1.setPayChannel(1L);
obj1.setPayTime("2021-06-08 16:28:19");
obj1.setProductType(5L);
obj1.setUserName("哈哈");
obj1.setUserNick("哈哈");
req.setParamOutBookOrderRequest(obj1);
AlitripFzCardOutBookResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_fz_card_out_book_response>
    <result>
        <fh_code>0</fh_code>
        <fh_msg>&quot;&quot;</fh_msg>
        <fh_success>true</fh_success>
        <out_buy_member_card_product_v_o>
            <effective_time>2021-11-11 00:00:00</effective_time>
            <expire_time>2021-11-11 00:00:00</expire_time>
            <fz_order_id>123</fz_order_id>
            <member_id>123</member_id>
        </out_buy_member_card_product_v_o>
    </result>
</alitrip_fz_card_out_book_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

返回
顶部