alibaba.mos.goods.price.getpricebytime (获取特定时间点的商品价格)

获取特定时间点的商品价格

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sku_list String [] 可选 111,222
  • 最大列表长度:100
  • skuids
    channel_id String 可选 0
  • 默认值:0
  • 渠道编码
    time Date 可选 2018-12-27 12:00:00 查询时间点

    响应参数

    名称 类型 示例值 描述
    result ResultDo 返回结果
    • └ total
    • String
    • 1
    • total
    • └ err_msg
    • String
    • 成功
    • errMsg
    • price_list
    • PriceDto []
    • {skuId:111,price:200}
    • price_list
    • └ operator_time
    • Date
    • 2018-05-01 12:00:00
    • 修改时间
    • └ settlement_code
    • String
    • 111
    • 扣点码
    • └ price
    • String
    • 200
    • 排期价格
    • └ sku_id
    • String
    • 11111
    • sku id
    • └ id
    • String
    • 123
    • id
    • └ operator
    • String
    • test
    • 修改人
    • └ err_code
    • String
    • 200
    • 错误码
    • └ success
    • Boolean
    • true
    • 调用是否成功

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaMosGoodsPriceGetpricebytimeRequest req = new AlibabaMosGoodsPriceGetpricebytimeRequest();
    req.setSkuList("111,222");
    req.setChannelId("0");
    req.setTime(StringUtils.parseDateTime("2018-12-27 12:00:00"));
    AlibabaMosGoodsPriceGetpricebytimeResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_mos_goods_price_getpricebytime_response>
        <result>
            <total>1</total>
            <err_msg>成功</err_msg>
            <price_list>
                <price_dto>
                    <operator_time>2018-05-01 12:00:00</operator_time>
                    <settlement_code>111</settlement_code>
                    <price>200</price>
                    <sku_id>11111</sku_id>
                    <id>123</id>
                    <operator>test</operator>
                </price_dto>
            </price_list>
            <err_code>200</err_code>
            <success>true</success>
        </result>
    </alibaba_mos_goods_price_getpricebytime_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

    返回
    顶部