taobao.paimai.pmp.auction.detail.get (查询发布/编辑页表单回显数据)

查询发布/编辑页表单回显数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
top_detail_request TopDetailRequest 必须 topDetailRequest
  • └ item_id
  • Number
  • 必须
  • 3
  • 商品id

响应参数

名称 类型 示例值 描述
top_result TopResult topResult
  • └ success
  • Boolean
  • false
  • 是否成功
  • top_auction_detail
  • TopAuctionDetail
  • 返回数据
  • └ item_id
  • Number
  • 3
  • 拍品ID
  • └ auction_type
  • String
  • xxxxx
  • 拍卖类型: oa-英式拍卖, du-荷兰拍, fpo-仅直购价
  • └ title
  • String
  • xxxxx
  • 拍品标题
  • └ short_title
  • String
  • xxxxx
  • 短标题
  • └ desc
  • String
  • xxxxx
  • 拍品详情
  • └ category_id
  • Number
  • 3
  • 标准类目ID(后台类目)
  • └ front_cat_id
  • Number
  • 3
  • 前台一级类目ID
  • └ front_child_cat_id
  • Number
  • 3
  • 前台二级类目ID
  • └ prov
  • String
  • xxxxx
  • 省份编码
  • └ city
  • String
  • xxxxx
  • 城市编码
  • └ quantity
  • Number
  • 10
  • 库存
  • └ c_code
  • String
  • xxxxx
  • 商品编码
  • └ fixed_price
  • Number
  • 3
  • 一口价/直购价(分),仅直购价模式必填
  • └ pic_urls
  • String []
  • Top,Pub
  • 图片URL列表第一张默认主图
  • detail_video
  • TopVideo
  • 详情视频对象
  • └ video_id
  • String
  • 111
  • 视频ID
  • └ video_url
  • String
  • http://video.alicdn.com/video/111.mp4
  • 视频URL
  • └ video_cover_url
  • String
  • http://video.alicdn.com/video/111.jpg
  • 视频封面URL
  • main_video
  • TopVideo
  • 主图视频对象
  • └ video_id
  • String
  • 111
  • 视频ID
  • └ video_url
  • String
  • http://video.alicdn.com/video/111.mp4
  • 视频URL
  • └ video_cover_url
  • String
  • http://video.alicdn.com/video/111.jpg
  • 视频封面URL
  • └ properties
  • String
  • xxxxx
  • 属性串, 格式: p1:v1;p2:v2
  • └ input_pids
  • String
  • xxxxx
  • 用户自定义属性ID串需跟属性值串一一对应,格式: 逗号分隔的 pid,如 "20000,20001"
  • └ input_str
  • String
  • xxxxx
  • 用户自定义属性值串需跟属性id串一一对应,格式: 逗号分隔的值组,每组内分号分隔,如 "耐克;耐克系列,科比系列;2K5"
  • └ tag_ids
  • String
  • xxxxx
  • 标签ID列表 格式: 逗号分隔的 tagId,如 "101,203,305"
  • └ ext_params
  • String
  • {"extendServiceForms": [{ "code": "SELLER_RULE","version": "a336db143159cc056b2bc6f335d1cfcc", "properties":[{"code": "发货信息","value": "24小时"}, {"code":"包邮", "value": "包邮"}]}]}
  • 扩展参数JSON 例如{"extendServiceForms": [{ "code": "SELLER_RULE","version": "a336db143159cc056b2bc6f335d1cfcc", "properties":[{"code": "发货信息","value": "24小时"}, {"code":"包邮", "value": "包邮"}]}]}
  • └ status
  • String
  • xxxxx
  • 商品状态
  • └ create_time
  • Date
  • null
  • 创建时间
  • error_code
  • TopErrorCode
  • 错误码
  • └ code
  • String
  • INVALID_PARAMETER
  • 业务错误码
  • └ default_msg
  • String
  • 参数缺失或值域不合法
  • 业务错误信息
  • └ message
  • String
  • xxxxx
  • 错误信息
  • └ trace_id
  • String
  • xxxxx
  • 链路追踪ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaimaiPmpAuctionDetailGetRequest req = new PaimaiPmpAuctionDetailGetRequest();
PaimaiPmpAuctionDetailGetRequest.TopDetailRequest obj1 = new PaimaiPmpAuctionDetailGetRequest.TopDetailRequest();
obj1.setItemId(3L);
req.setTopDetailRequest(obj1);
PaimaiPmpAuctionDetailGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<paimai_pmp_auction_detail_get_response>
    <top_result>
        <success>false</success>
        <top_auction_detail>
            <item_id>3</item_id>
            <auction_type>xxxxx</auction_type>
            <title>xxxxx</title>
            <short_title>xxxxx</short_title>
            <desc>xxxxx</desc>
            <category_id>3</category_id>
            <front_cat_id>3</front_cat_id>
            <front_child_cat_id>3</front_child_cat_id>
            <prov>xxxxx</prov>
            <city>xxxxx</city>
            <quantity>10</quantity>
            <c_code>xxxxx</c_code>
            <fixed_price>3</fixed_price>
            <pic_urls>
                <string>Top</string>
                <string>Pub</string>
            </pic_urls>
            <detail_video>
                <video_id>111</video_id>
                <video_url>http://video.alicdn.com/video/111.mp4</video_url>
                <video_cover_url>http://video.alicdn.com/video/111.jpg</video_cover_url>
            </detail_video>
            <main_video>
                <video_id>111</video_id>
                <video_url>http://video.alicdn.com/video/111.mp4</video_url>
                <video_cover_url>http://video.alicdn.com/video/111.jpg</video_cover_url>
            </main_video>
            <properties>xxxxx</properties>
            <input_pids>xxxxx</input_pids>
            <input_str>xxxxx</input_str>
            <tag_ids>xxxxx</tag_ids>
            <ext_params>{&quot;extendServiceForms&quot;:  [{ &quot;code&quot;: &quot;SELLER_RULE&quot;,&quot;version&quot;: &quot;a336db143159cc056b2bc6f335d1cfcc&quot;,  &quot;properties&quot;:[{&quot;code&quot;: &quot;发货信息&quot;,&quot;value&quot;: &quot;24小时&quot;}, {&quot;code&quot;:&quot;包邮&quot;, &quot;value&quot;: &quot;包邮&quot;}]}]}</ext_params>
            <status>xxxxx</status>
            <create_time>null</create_time>
        </top_auction_detail>
        <error_code>
            <code>INVALID_PARAMETER</code>
            <default_msg>参数缺失或值域不合法</default_msg>
        </error_code>
        <message>xxxxx</message>
        <trace_id>xxxxx</trace_id>
    </top_result>
</paimai_pmp_auction_detail_get_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

返回
顶部