文档中心 > API类目 > 飞猪商家平台

alitrip.merchant.galaxy.coupon.valid.list (用户有效优惠券列表)

雅高小程序用户有效优惠券列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tenant_key String 必须 10006373010 租户Id
token String 可选 MTwsrB3Jskxfz3 用户Token

响应参数

名称 类型 示例值 描述
result Response 结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • String
  • 200
  • 状态码
  • content
  • WeChatCouponVO
  • 优惠券实例
  • coupon_info_v_o
  • CouponInfoVO []
  • 优惠券实例对象
  • └ instance_id
  • Number
  • 163751
  • 实例id
  • └ discount_amount
  • String
  • 222.00
  • 折扣
  • └ condition_amount
  • String
  • 111.00
  • 门槛
  • └ detail_desc
  • String
  • 谁谁谁
  • 描述
  • └ coupon_name
  • String
  • 新增优惠券
  • 优惠券名字
  • └ expired_time_min
  • String
  • 2022-03-02 23:59:59
  • 过期时间
  • └ coupon_type
  • String
  • ELIGIBILITY_COUPON
  • 优惠券类型
  • └ coupon_template_id
  • Number
  • 37
  • 模板id
  • └ condition_desc
  • String
  • 满111.00适用
  • 描述
  • └ status
  • String
  • AVAILABLE
  • 状态
  • └ sign
  • String
  • 123123
  • 加密串
  • └ send_coupon_merchant
  • String
  • 111
  • 商户号
  • send_coupon_params
  • SendCouponParams []
  • 1
  • └ stock_id
  • String
  • 1
  • 1
  • └ out_request_no
  • String
  • 1
  • 1
  • └ coupon_code
  • String
  • 1
  • 1
  • └ error_msg
  • String
  • 错误信息
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlitripMerchantGalaxyCouponValidListRequest req = new AlitripMerchantGalaxyCouponValidListRequest();
req.setTenantKey("10006373010");
req.setToken("MTwsrB3Jskxfz3");
AlitripMerchantGalaxyCouponValidListResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alitrip_merchant_galaxy_coupon_valid_list_response>
    <result>
        <success>true</success>
        <error_code>200</error_code>
        <content>
            <coupon_info_v_o>
                <coupon_info_v_o>
                    <instance_id>163751</instance_id>
                    <discount_amount>222.00</discount_amount>
                    <condition_amount>111.00</condition_amount>
                    <detail_desc>谁谁谁</detail_desc>
                    <coupon_name>新增优惠券</coupon_name>
                    <expired_time_min>2022-03-02 23:59:59</expired_time_min>
                    <coupon_type>ELIGIBILITY_COUPON</coupon_type>
                    <coupon_template_id>37</coupon_template_id>
                    <condition_desc>满111.00适用</condition_desc>
                    <status>AVAILABLE</status>
                </coupon_info_v_o>
            </coupon_info_v_o>
            <sign>123123</sign>
            <send_coupon_merchant>111</send_coupon_merchant>
            <send_coupon_params>
                <send_coupon_params>
                    <stock_id>1</stock_id>
                    <out_request_no>1</out_request_no>
                    <coupon_code>1</coupon_code>
                </send_coupon_params>
            </send_coupon_params>
        </content>
        <error_msg>错误信息</error_msg>
    </result>
</alitrip_merchant_galaxy_coupon_valid_list_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

返回
顶部