文档中心 > API类目 > 闲鱼电商SAAS

alibaba.idle.movie.promotions.query (电影服务商查询商品优惠接口)

电影服务商查询商品优惠接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
idle_coupon_promotion_query IdleCouponPromotionQuery 必须 商品优惠请求参数
  • └ item_id
  • Number
  • 必须
  • 123456
  • 商品ID
  • └ original_price
  • String
  • 必须
  • 5000
  • 商品价格(单位:分)

响应参数

名称 类型 示例值 描述
result IdlePromotionResult 响应对象
  • data
  • IdleCouponPromotionDTO []
  • 返回业务对象
  • └ item_id
  • Number
  • 123456
  • 商品ID
  • └ original_price
  • String
  • 50
  • 商品价格(单位:分)
  • └ discount_price
  • String
  • 46
  • 商品优惠后价格(单位:分)
  • └ discount
  • String
  • 4
  • 优惠金额(单位:分)
  • └ id_value
  • String
  • xxx
  • 优惠idValue
  • └ success
  • Boolean
  • true
  • 接口调用是否成功
  • └ error_code
  • String
  • param_valid
  • 错误码
  • └ error_msg
  • String
  • 参数异常
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleMoviePromotionsQueryRequest req = new AlibabaIdleMoviePromotionsQueryRequest();
AlibabaIdleMoviePromotionsQueryRequest.IdleCouponPromotionQuery obj1 = new AlibabaIdleMoviePromotionsQueryRequest.IdleCouponPromotionQuery();
obj1.setItemId(123456L);
obj1.setOriginalPrice("5000");
req.setIdleCouponPromotionQuery(obj1);
AlibabaIdleMoviePromotionsQueryResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_movie_promotions_query_response>
    <result>
        <data>
            <idle_coupon_promotion_d_t_o>
                <item_id>123456</item_id>
                <original_price>50</original_price>
                <discount_price>46</discount_price>
                <discount>4</discount>
                <id_value>xxx</id_value>
            </idle_coupon_promotion_d_t_o>
        </data>
        <success>true</success>
        <error_code>param_valid</error_code>
        <error_msg>参数异常</error_msg>
    </result>
</alibaba_idle_movie_promotions_query_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

返回
顶部