文档中心 > API类目 > 天猫新零售

alibaba.lsy.crm.activity.getbaseinfo (ISV查询活动)

ISV查询活动

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
nrt_query_activity_req NrtQueryActivityReq 可选 入参
  • └ activity_id
  • Number
  • 必须
  • 1
  • 活动ID

响应参数

名称 类型 示例值 描述
result ResultDo 返回结果
  • └ err_msg
  • String
  • **错误信息
  • 错误信息
  • data
  • NrtCrmActivityDto
  • NrtCrmActivityDTO
  • DTO
  • scene_activity_list
  • NrtCrmSceneActivityDto []
  • NrtCrmSceneActivityDto
  • 有价券DTO
  • nrt_crm_benefit_list
  • NrtCrmBenefitDto []
  • NrtCrmBenefitDto
  • 下挂模板DTO
  • └ total_quantity
  • String
  • 1
  • 限领总额
  • └ person_limit_count
  • String
  • 1
  • 个人限领
  • └ uuid
  • String
  • 1
  • uuid
  • └ start_fee
  • String
  • 1
  • 门槛
  • └ face_value
  • String
  • 1
  • 面额
  • └ effective_duration
  • String
  • 1
  • 券使用有效期间
  • └ effective_end_time
  • String
  • 13:00
  • 券使用结束时间
  • └ effective_start_time
  • String
  • 13:00
  • 券使用开始时间
  • └ effective_time_mode
  • String
  • 1
  • 券使用时间类型
  • └ end_time
  • Date
  • 13:00
  • 券发送截止时间
  • └ start_time
  • Date
  • 13:00
  • 券发送开始时间
  • └ benefit_name
  • String
  • name
  • 券名称
  • └ out_id
  • Number
  • 1
  • 券模板ID
  • └ seller_id
  • Number
  • 1
  • 卖家id
  • └ coupon_type
  • Number
  • 1
  • 优惠券类型
  • └ benefit_description
  • String
  • 描述
  • 券模板权益描述
  • └ reserve_price
  • Number
  • 1
  • 有价礼包商品价格
  • └ sell_gift_item_id
  • Number
  • 1
  • 有价礼包商品id
  • └ scene_status
  • Number
  • 1
  • 有价礼包活动状态
  • └ scene_activity_id
  • Number
  • 1
  • 有价礼包ID
  • └ tmp_type
  • String
  • AA
  • 有价礼包类型Type
  • └ banner_url
  • String
  • url
  • 头图
  • └ city_id
  • Number
  • 1
  • 同城站ID
  • └ status_str
  • String
  • draft
  • 活动状态
  • └ end_time
  • Date
  • time
  • 结束时间
  • └ start_time
  • Date
  • time
  • 开始时间
  • └ status
  • Number
  • 1
  • 活动状态
  • └ seller_id
  • Number
  • 1
  • 卖家ID
  • └ title
  • String
  • **活动
  • 标题
  • └ activity_id
  • Number
  • 1
  • 活动ID
  • └ description
  • String
  • **描述
  • 活动描述
  • └ rule
  • String
  • **规则
  • 活动规则
  • └ page_id
  • Number
  • 1
  • 站外页面ID
  • └ certificate_rights
  • String
  • 1
  • 权益信息
  • └ tmp_certificate_id
  • Number
  • 1
  • 电子凭证ID
  • nrt_crm_live_dto
  • NrtCrmLiveDTO
  • 直播信息
  • └ live_id
  • Number
  • 11
  • 直播间iD
  • └ live_title
  • String
  • 标题
  • 直播间标题
  • └ live_start_time
  • Date
  • time
  • 开始时间
  • └ live_end_time
  • Date
  • time
  • 结束时间
  • └ live_url
  • String
  • url
  • 直播间链接地址
  • └ live_status
  • Number
  • 1
  • 直播间状态
  • └ live_fore_show
  • String
  • url
  • 直播间预告URL
  • └ live_cover_url
  • String
  • http://**.com
  • 直播间封面URL
  • └ mall_id
  • Number
  • 111
  • 卖场ID
  • └ success
  • Boolean
  • true
  • 调用是否成功
  • └ err_code
  • String
  • 500
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaLsyCrmActivityGetbaseinfoRequest req = new AlibabaLsyCrmActivityGetbaseinfoRequest();
AlibabaLsyCrmActivityGetbaseinfoRequest.NrtQueryActivityReq obj1 = new AlibabaLsyCrmActivityGetbaseinfoRequest.NrtQueryActivityReq();
obj1.setActivityId(1L);
req.setNrtQueryActivityReq(obj1);
AlibabaLsyCrmActivityGetbaseinfoResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_lsy_crm_activity_getbaseinfo_response>
    <result>
        <err_msg>**错误信息</err_msg>
        <data>
            <scene_activity_list>
                <nrt_crm_scene_activity_dto>
                    <nrt_crm_benefit_list>
                        <nrt_crm_benefit_dto>
                            <total_quantity>1</total_quantity>
                            <person_limit_count>1</person_limit_count>
                            <uuid>1</uuid>
                            <start_fee>1</start_fee>
                            <face_value>1</face_value>
                            <effective_duration>1</effective_duration>
                            <effective_end_time>13:00</effective_end_time>
                            <effective_start_time>13:00</effective_start_time>
                            <effective_time_mode>1</effective_time_mode>
                            <end_time>13:00</end_time>
                            <start_time>13:00</start_time>
                            <benefit_name>name</benefit_name>
                            <out_id>1</out_id>
                            <seller_id>1</seller_id>
                            <coupon_type>1</coupon_type>
                            <benefit_description>描述</benefit_description>
                        </nrt_crm_benefit_dto>
                    </nrt_crm_benefit_list>
                    <reserve_price>1</reserve_price>
                    <sell_gift_item_id>1</sell_gift_item_id>
                    <scene_status>1</scene_status>
                    <scene_activity_id>1</scene_activity_id>
                    <tmp_type>AA</tmp_type>
                </nrt_crm_scene_activity_dto>
            </scene_activity_list>
            <banner_url>url</banner_url>
            <city_id>1</city_id>
            <status_str>draft</status_str>
            <end_time>time</end_time>
            <start_time>time</start_time>
            <status>1</status>
            <seller_id>1</seller_id>
            <title>**活动</title>
            <activity_id>1</activity_id>
            <description>**描述</description>
            <rule>**规则</rule>
            <page_id>1</page_id>
            <certificate_rights>1</certificate_rights>
            <tmp_certificate_id>1</tmp_certificate_id>
            <nrt_crm_live_dto>
                <live_id>11</live_id>
                <live_title>标题</live_title>
                <live_start_time>time</live_start_time>
                <live_end_time>time</live_end_time>
                <live_url>url</live_url>
                <live_status>1</live_status>
                <live_fore_show>url</live_fore_show>
                <live_cover_url>http://**.com</live_cover_url>
            </nrt_crm_live_dto>
            <mall_id>111</mall_id>
        </data>
        <success>true</success>
        <err_code>500</err_code>
    </result>
</alibaba_lsy_crm_activity_getbaseinfo_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

返回
顶部