文档中心 > API类目 > 闲鱼循环商店-前台

alibaba.idle.isv.item.price.advice (商品价格估价接口)

商品价格估价接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopGoodsPriceAdviceTopCmd 必须 参数
  • └ biz_code
  • String
  • 必须
  • test
  • 业务编码,开发定义
  • └ image_url_list
  • String []
  • 必须
  • []
  • 图片列表
  • └ fid_image_format
  • Boolean
  • 必须
  • true
  • 是否是图片id传入参数格式
  • └ title
  • String
  • 可选
  • test
  • 标题
  • └ desc
  • String
  • 可选
  • test
  • 描述
  • └ cpv
  • String
  • 必须
  • pid##pname:vid##vname;pid##pname
  • cpv信息,结构化属性,格式:pid##pname:vid##vname;pid##pname:vid##vname
  • └ channel_cate_id
  • Number
  • 必须
  • 123
  • 闲鱼渠道类目id
  • └ cpv_enable
  • Boolean
  • 必须
  • true
  • cpv是否开启,默认true即可

响应参数

名称 类型 示例值 描述
result CyclePriceAdviceResult 结果
  • module
  • CycleShopGoodsPriceAdviceTopVO
  • 估价数据结果
  • └ suggest_price
  • String
  • 100
  • 建议价格,单位 元
  • └ suggest_price_low
  • String
  • 100
  • 建议价格下界
  • └ suggest_price_high
  • String
  • 200
  • 建议价格上界
  • suggest_price_list
  • CycleShopGoodsPriceAdviceVO []
  • 建议价格列表
  • └ suggest_price
  • String
  • 100
  • 建议价格,单位 元
  • └ suggest_price_low
  • String
  • 100
  • 建议价格下界
  • └ suggest_price_high
  • String
  • 200
  • 建议价格上界
  • └ suggest_price_source
  • String
  • bSeller
  • 建议价格来源
  • └ suggest_price_source_desc
  • String
  • 闲鱼b卖家
  • 建议价格来源描述
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ errors
  • String
  • {"errorMsg" : ["错误信息"]}
  • 错误结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleIsvItemPriceAdviceRequest req = new AlibabaIdleIsvItemPriceAdviceRequest();
AlibabaIdleIsvItemPriceAdviceRequest.CycleShopGoodsPriceAdviceTopCmd obj1 = new AlibabaIdleIsvItemPriceAdviceRequest.CycleShopGoodsPriceAdviceTopCmd();
obj1.setBizCode("test");
obj1.setImageUrlList("");
obj1.setFidImageFormat(true);
obj1.setTitle("test");
obj1.setDesc("test");
obj1.setCpv("pid##pname:vid##vname;pid##pname");
obj1.setChannelCateId(123L);
obj1.setCpvEnable(true);
req.setParam(obj1);
AlibabaIdleIsvItemPriceAdviceResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_isv_item_price_advice_response>
    <result>
        <module>
            <suggest_price>100</suggest_price>
            <suggest_price_low>100</suggest_price_low>
            <suggest_price_high>200</suggest_price_high>
            <suggest_price_list>
                <cycle_shop_goods_price_advice_v_o>
                    <suggest_price>100</suggest_price>
                    <suggest_price_low>100</suggest_price_low>
                    <suggest_price_high>200</suggest_price_high>
                    <suggest_price_source>bSeller</suggest_price_source>
                    <suggest_price_source_desc>闲鱼b卖家</suggest_price_source_desc>
                </cycle_shop_goods_price_advice_v_o>
            </suggest_price_list>
        </module>
        <success>true</success>
        <errors>{&quot;errorMsg&quot; : [&quot;错误信息&quot;]}</errors>
    </result>
</alibaba_idle_isv_item_price_advice_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

返回
顶部