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

alibaba.idle.cycleshop.store.goods.save (闲鱼循环商店-门店SAAS-货品编辑)

闲鱼循环商店-门店SAAS-货品编辑

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopGoodsEditTopCmd 必须 请求参数
  • └ goods_id
  • Number
  • 必须
  • 231145677864
  • 闲鱼货品Id
  • └ goods_title
  • String
  • 可选
  • iphone13手机
  • 货品标题
  • └ goods_desc
  • String
  • 可选
  • 红色,9成新
  • 货品描述
  • goods_img_list
  • CycleShopImageTopVO []
  • 可选
  • [{'id':23452352345,'url':'http://kkk.ipg','wide':68,'height':168}]
  • 货品图片列表
  • └ id
  • Number
  • 可选
  • 234543565756
  • 图片id
  • └ url
  • String
  • 可选
  • ttp://kkk.ipg
  • 图片url
  • └ wide
  • Number
  • 可选
  • 68
  • 宽度
  • └ height
  • Number
  • 可选
  • 168
  • 高度
  • └ goods_category
  • String
  • 可选
  • 126862528
  • 货品类目
  • goods_pv_list
  • CycleShopPropertyTopVO []
  • 可选
  • [{'property_id':'345234','property_name':'颜色','value_id':'6746543','value_name':'红色'}]
  • 货品属性列表
  • └ property_id
  • String
  • 可选
  • 345234
  • 属性Id
  • └ property_name
  • String
  • 可选
  • 颜色
  • 属性名称
  • └ value_id
  • String
  • 可选
  • 6746543
  • 值Id
  • └ value_name
  • String
  • 可选
  • 红色
  • 值名称
  • └ min_pre_price
  • Number
  • 可选
  • 158000
  • 货品预估售卖价-最低,单位分
  • └ max_pre_price
  • Number
  • 可选
  • 209300
  • 货品预估售卖价-最高,单位分
  • └ goods_price
  • Number
  • 可选
  • 189800
  • 货品实际售卖价,单位分
  • └ can_consign_sale
  • Boolean
  • 可选
  • false
  • 是否可寄卖
  • └ un_consign_reason
  • String
  • 可选
  • 灯不亮
  • 不可寄卖原因,不可寄卖时必传
  • └ sale_way
  • String
  • 可选
  • Both
  • 售卖方式【Online:仅线上,Offline:仅线下,Both:线上+线下】
  • └ cost_price
  • Number
  • 可选
  • 100
  • 成本价,单位分
  • └ origin_price
  • Number
  • 可选
  • 200
  • 原价,单位分
  • └ quantity
  • Number
  • 可选
  • 10
  • 库存

响应参数

名称 类型 示例值 描述
result CommonResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ err_code
  • String
  • PARAM_ERROR
  • 错误码
  • └ err_msg
  • String
  • 参数不合法
  • 错误描述
  • data
  • CycleShopGoodsSaveTopVO
  • 成功时返回数据
  • └ goods_id
  • Number
  • 23462352345234
  • 闲鱼货品id

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCycleshopStoreGoodsSaveRequest req = new AlibabaIdleCycleshopStoreGoodsSaveRequest();
AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopGoodsEditTopCmd obj1 = new AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopGoodsEditTopCmd();
obj1.setGoodsId(231145677864L);
obj1.setGoodsTitle("iphone13手机");
obj1.setGoodsDesc("红色,9成新");
List<AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopImageTopVO> list3 = new ArrayList<AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopImageTopVO>();
AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopImageTopVO obj4 = new AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopImageTopVO();
list3.add(obj4);
obj4.setId(234543565756L);
obj4.setUrl("ttp://kkk.ipg");
obj4.setWide(68L);
obj4.setHeight(168L);
obj1.setGoodsImgList(list3);
obj1.setGoodsCategory("126862528");
List<AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopPropertyTopVO> list6 = new ArrayList<AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopPropertyTopVO>();
AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopPropertyTopVO obj7 = new AlibabaIdleCycleshopStoreGoodsSaveRequest.CycleShopPropertyTopVO();
list6.add(obj7);
obj7.setPropertyId("345234");
obj7.setPropertyName("颜色");
obj7.setValueId("6746543");
obj7.setValueName("红色");
obj1.setGoodsPvList(list6);
obj1.setMinPrePrice(158000L);
obj1.setMaxPrePrice(209300L);
obj1.setGoodsPrice(189800L);
obj1.setCanConsignSale(false);
obj1.setUnConsignReason("灯不亮");
obj1.setSaleWay("Both");
obj1.setCostPrice(100L);
obj1.setOriginPrice(200L);
obj1.setQuantity(10L);
req.setParam(obj1);
AlibabaIdleCycleshopStoreGoodsSaveResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_cycleshop_store_goods_save_response>
    <result>
        <success>true</success>
        <err_code>PARAM_ERROR</err_code>
        <err_msg>参数不合法</err_msg>
        <data>
            <goods_id>23462352345234</goods_id>
        </data>
    </result>
</alibaba_idle_cycleshop_store_goods_save_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

返回
顶部