文档中心 > API类目 > 新零售供应链API

alibaba.ascp.channel.distributor.price.get (链渠道中心淘外分销价格查询(分销商专用))

此api为淘外分销的渠道产品价格查询标准api,淘外分销商专用

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
price_request Pricerequest 可选 价格入参
  • └ product_id
  • String
  • 必须
  • 572261812004
  • 产品ID
  • └ price_type
  • String
  • 可选
  • CHANNEL_PRICE
  • 价格类型
  • └ sales_mode
  • String
  • 可选
  • dealer
  • 经营模式
  • └ sub_channel_code
  • String
  • 可选
  • tmallglobal_blackUnique
  • 二级渠道code
  • └ channel_code
  • String
  • 必须
  • tmallglobal
  • 市场code

响应参数

名称 类型 示例值 描述
result ResultDto 异步获取历史数据接口返回结果
  • └ success
  • Boolean
  • true
  • 执行结果
  • data
  • TopDistributorPriceResult
  • 价格数据
  • └ product_id
  • String
  • 572261812004
  • 产品ID
  • product_price
  • TopChannelPriceDetail
  • 产品价格详情
  • └ currency_price_value
  • String
  • 币种
  • └ price
  • String
  • 价格值
  • └ extend_price
  • String
  • 扩展价格
  • sku_prices
  • TopChannelSkuPrice []
  • sku价格详情
  • sku_price
  • SkuPrice
  • sku价格
  • └ extend_price
  • String
  • 扩展价格
  • └ price
  • String
  • 2.0000
  • 价格值
  • └ currency_price_value
  • String
  • CNY
  • 币种
  • └ sku_id
  • String
  • 4581686065805
  • skuId
  • └ error_message
  • String
  • 错误码
  • └ error_code
  • String
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelDistributorPriceGetRequest req = new AlibabaAscpChannelDistributorPriceGetRequest();
AlibabaAscpChannelDistributorPriceGetRequest.Pricerequest obj1 = new AlibabaAscpChannelDistributorPriceGetRequest.Pricerequest();
obj1.setProductId("572261812004");
obj1.setPriceType("CHANNEL_PRICE");
obj1.setSalesMode("dealer");
obj1.setSubChannelCode("tmallglobal_blackUnique");
obj1.setChannelCode("tmallglobal");
req.setPriceRequest(obj1);
AlibabaAscpChannelDistributorPriceGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_channel_distributor_price_get_response>
    <result>
        <success>true</success>
        <data>
            <product_id>572261812004</product_id>
            <product_price>
                <currency_price_value></currency_price_value>
                <price></price>
                <extend_price></extend_price>
            </product_price>
            <sku_prices>
                <top_channel_sku_price>
                    <sku_price>
                        <extend_price></extend_price>
                        <price>2.0000</price>
                        <currency_price_value>CNY</currency_price_value>
                    </sku_price>
                    <sku_id>4581686065805</sku_id>
                </top_channel_sku_price>
            </sku_prices>
        </data>
        <error_message></error_message>
        <error_code></error_code>
    </result>
</alibaba_ascp_channel_distributor_price_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

返回
顶部