文档中心 > API类目 > 淘宝小程序API

taobao.miniapp.guide.seller.items.simple.apply (商家自主提报商品)

商家自主提报商品

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
subject_id Number 必须 1234 主题id
item_dto_list ApplyItemDTO 必须 商品信息
  • └ item_id
  • Number
  • 必须
  • 4455677
  • 商品id
  • └ properties
  • String
  • 可选
  • {"white_background_img":"https://www.taobao.com"}
  • 商品扩展信息

响应参数

名称 类型 示例值 描述
result MiniappResult result
  • └ success
  • Boolean
  • true
  • 调用结果true or false
  • └ error_type
  • Number
  • 1
  • 错误码
  • model
  • ApplyItemsModule
  • 返回参数
  • └ success
  • Boolean
  • true
  • 返回结果
  • └ fail_items
  • String
  • { "1234566": "定制商品 商品不能参加组合购报名", "4556773": "虚拟商品 商品不能参加组合购报名" }
  • 错误商品信息,key是商品id,value是错误原因
  • └ error_msg
  • String
  • 错误信息
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
MiniappGuideSellerItemsSimpleApplyRequest req = new MiniappGuideSellerItemsSimpleApplyRequest();
req.setSubjectId(1234L);
MiniappGuideSellerItemsSimpleApplyRequest.ApplyItemDTO obj1 = new MiniappGuideSellerItemsSimpleApplyRequest.ApplyItemDTO();
obj1.setItemId(4455677L);
obj1.setProperties("{\"white_background_img\":\"https://www.taobao.com\"}");
req.setItemDtoList(obj1);
MiniappGuideSellerItemsSimpleApplyResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<miniapp_guide_seller_items_simple_apply_response>
    <result>
        <success>true</success>
        <error_type>1</error_type>
        <model>
            <success>true</success>
            <fail_items>{       &quot;1234566&quot;: &quot;定制商品 商品不能参加组合购报名&quot;,       &quot;4556773&quot;: &quot;虚拟商品 商品不能参加组合购报名&quot;     }</fail_items>
        </model>
        <error_msg>错误信息</error_msg>
    </result>
</miniapp_guide_seller_items_simple_apply_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

返回
顶部