taobao.promotion.activity.get (查询某个卖家的店铺优惠券领取活动)

查询某个卖家的店铺优惠券领取活动 返回,优惠券领取活动ID,优惠券ID,总领用量,每人限领量,已领取数量 领取活动状态,优惠券领取链接 最多50个优惠券

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
activity_id Number 可选 585448 活动的id

响应参数

名称 类型 示例值 描述
activitys Activity [] 活动列表
  • └ activity_id
  • Number
  • 88744
  • 活动id
  • └ coupon_id
  • Number
  • 8554
  • 活动对应的优惠券ID
  • └ total_count
  • Number
  • 50
  • 卖家设置优惠券领取的总领用量
  • └ applied_count
  • Number
  • 50
  • 已经领取的优惠券的数量
  • └ person_limit_count
  • Number
  • 4
  • 每个买家限领取优惠券的数量,1~5张
  • └ status
  • String
  • enabled
  • enabled代表有效,invalid代表失效。other代表空值
  • └ activity_url
  • String
  • http://ecrm.taobao
  • 领用优惠券的链接
  • └ create_user
  • String
  • self
  • self代表自己创建,other他人创建

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PromotionActivityGetRequest req = new PromotionActivityGetRequest();
req.setActivityId(585448L);
PromotionActivityGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<promotion_activity_get_response>
    <activitys>
        <activity>
            <activity_id>88744</activity_id>
            <coupon_id>8554</coupon_id>
            <total_count>50</total_count>
            <applied_count>50</applied_count>
            <person_limit_count>4</person_limit_count>
            <status>enabled</status>
            <activity_url>http://ecrm.taobao</activity_url>
            <create_user>self</create_user>
        </activity>
    </activitys>
</promotion_activity_get_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>

错误码解释

错误码 错误描述 解决方案
isp.promotiontop-service-unavailable 系统异常 系统异常
isv.error-unauthorized 卖家没有订购优惠券的服务 卖家没有订购优惠券的服务,必须订购优惠券或者是商城的用户

API工具

如何获得此API

FAQ

返回
顶部