文档中心 > API类目 > 淘宝买菜次日达-快递送达

alibaba.tbmc.item.get.with.schema (淘宝买菜开放平台单个商品查询接口)

淘宝买菜开放平台单个商品查询接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_detail_with_schema_request ItemDetailWithSchemaRequest 可选 request
  • └ org_no
  • String
  • 必须
  • 1
  • 1
  • └ platform_merchant_code
  • String
  • 可选
  • 1
  • 1
  • └ supplier_no
  • String
  • 必须
  • 1
  • 1
  • └ sku_code
  • String
  • 必须
  • 1
  • 1

响应参数

名称 类型 示例值 描述
result TopBaseResult result
  • └ return_code
  • String
  • system_error
  • returnCode
  • └ return_msg
  • String
  • 系统错误
  • returnMsg
  • └ success
  • Boolean
  • true
  • success
  • model
  • ItemDTO
  • 商品信息
  • └ sku_code
  • String
  • 123
  • 商品编码
  • └ sku_name
  • String
  • 飘柔
  • 商品名称
  • └ barcode_list
  • String []
  • 商品主条码
  • └ forest_cat_id
  • Number
  • 231
  • forest叶子类目(类目id)
  • └ forest_cat_name
  • String
  • 水果
  • forest叶子类目名称(类目名称)
  • └ brand
  • String
  • 华为
  • 品牌
  • item_spec_dtos
  • ItemSpecDTO []
  • 规格信息
  • └ spec_name
  • String
  • 规格
  • 笛卡尔集规格名称
  • └ sku_id
  • Number
  • 123
  • 子品skuId
  • └ spec_barcode_list
  • String []
  • 规格条码
  • └ spec_sku_code
  • String []
  • qwe
  • 规格货品编码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
1
2
3
4
5
6
7
8
9
10
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTbmcItemGetWithSchemaRequest req = new AlibabaTbmcItemGetWithSchemaRequest();
AlibabaTbmcItemGetWithSchemaRequest.ItemDetailWithSchemaRequest obj1 = new AlibabaTbmcItemGetWithSchemaRequest.ItemDetailWithSchemaRequest();
obj1.setOrgNo("1");
obj1.setPlatformMerchantCode("1");
obj1.setSupplierNo("1");
obj1.setSkuCode("1");
req.setItemDetailWithSchemaRequest(obj1);
AlibabaTbmcItemGetWithSchemaResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<alibaba_tbmc_item_get_with_schema_response>
    <result>
        <return_code>system_error</return_code>
        <return_msg>系统错误</return_msg>
        <success>true</success>
        <model>
            <sku_code>123</sku_code>
            <sku_name>飘柔</sku_name>
            <forest_cat_id>231</forest_cat_id>
            <forest_cat_name>水果</forest_cat_name>
            <brand>华为</brand>
            <item_spec_dtos>
                <item_spec_d_t_o>
                    <spec_name>规格</spec_name>
                    <sku_id>123</sku_id>
                    <spec_sku_code>
                        <string>qwe</string>
                    </spec_sku_code>
                </item_spec_d_t_o>
            </item_spec_dtos>
        </model>
    </result>
</alibaba_tbmc_item_get_with_schema_response>

异常示例

  • XML示例
  • JSON示例
1
2
3
4
5
6
<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

返回
顶部