alibaba.mj.xlife.member.pay.getdiscounts (获取付费会员折扣)

获取365/366会员折扣信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
req MoneyVipDiscountReq 可选 查询参数
  • └ account
  • String
  • 可选
  • 123
  • 会员帐号
  • └ coupon_amount
  • String
  • 可选
  • 0
  • 已使用券额
  • └ sales_type
  • String
  • 可选
  • 0
  • 销售类型
  • └ vip_type
  • String
  • 可选
  • 1,3
  • 会员标
  • └ pay_site
  • String
  • 可选
  • POS
  • 销售渠道
  • └ commodity_list
  • String
  • 可选
  • [{"actualamount":264,"comcode":"3098","rowno":1,"comstore":"HZ10"}]
  • 商品集

响应参数

名称 类型 示例值 描述
data Json couponAmount=26.4, totalDiscount=26.4, totalDiscount366=44.4, couponcode=null data

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaMjXlifeMemberPayGetdiscountsRequest req = new AlibabaMjXlifeMemberPayGetdiscountsRequest();
AlibabaMjXlifeMemberPayGetdiscountsRequest.MoneyVipDiscountReq obj1 = new AlibabaMjXlifeMemberPayGetdiscountsRequest.MoneyVipDiscountReq();
obj1.setAccount("123");
obj1.setCouponAmount("0");
obj1.setSalesType("0");
obj1.setVipType("1,3");
obj1.setPaySite("POS");
obj1.setCommodityList("[{\"actualamount\":264,\"comcode\":\"3098\",\"rowno\":1,\"comstore\":\"HZ10\"}]");
req.setReq(obj1);
AlibabaMjXlifeMemberPayGetdiscountsResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_mj_xlife_member_pay_getdiscounts_response>
    <data>couponAmount=26.4, totalDiscount=26.4, totalDiscount366=44.4, couponcode=null</data>
</alibaba_mj_xlife_member_pay_getdiscounts_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

返回
顶部