注意:以下文档只适用于TOP接口,请谨慎使用!

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

alibaba.ascp.channel.distributor.quotation.get (渠道中心淘外分销报价单查询)

分销商ERP系统主动调用这个接口, 获取供应商给分销商的“报价单”详情。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
quotation_request TopQuotationPriceRequest 必须 入参
  • └ quotation_id
  • String
  • 必须
  • xxxx
  • 报价单主单ID
  • └ sub_quotation_id
  • String
  • 可选
  • xxxx
  • 报价单子单ID
  • └ channel_code
  • String
  • 必须
  • tmallglobal
  • 市场code
  • └ sub_channel_code
  • String
  • 必须
  • tmallglobal_blackUnique
  • 二级渠道code
  • └ product_id
  • String
  • 可选
  • 123
  • 品id
  • └ sku_id
  • String
  • 可选
  • 123
  • skuid
  • └ page_number
  • Number
  • 必须
  • 1
  • 页码
  • └ page_size
  • Number
  • 必须
  • 20
  • 页数

响应参数

名称 类型 示例值 描述
result ResultDTO 出参
  • module
  • TopQuotationPriceResult
  • 报价单对象
  • └ quotation_id
  • String
  • xxxx
  • 报价单id
  • └ status
  • Number
  • 0
  • 状态:0失效 1生效
  • └ start_date
  • Date
  • 0
  • 生效开始时间
  • └ end_date
  • Date
  • 1
  • 生效结束时间
  • └ total_count
  • Number
  • 1
  • 子单品个数
  • └ page_number
  • Number
  • 1
  • 页码
  • └ page_size
  • Number
  • 20
  • 页数
  • address_list
  • TopQuotationAddress []
  • 地址列表
  • └ province_name
  • String
  • 浙江省
  • 省名称
  • └ province_code
  • String
  • 330000
  • 省code
  • └ city_name
  • String
  • 杭州市
  • 市名称
  • └ city_code
  • String
  • 330100
  • 市code
  • └ area_name
  • String
  • 余杭区
  • 区名称
  • └ area_code
  • String
  • 330110
  • 区code
  • └ street_name
  • String
  • 五常街道
  • 街道名称
  • └ street_code
  • String
  • 330110005
  • 街道code
  • └ division_id
  • String
  • 330110005
  • 末级code
  • item_list
  • TopQuotationItem []
  • 子单品id
  • └ sub_quotation_id
  • String
  • xxxx
  • 子报价单ID
  • └ product_id
  • String
  • 1234
  • 品id
  • └ sku_id
  • String
  • 1234
  • skuid
  • └ price
  • String
  • 12
  • └ count
  • String
  • 12
  • 数量
  • └ error_message
  • String
  • 错误信息
  • 错误信息
  • └ error_code
  • String
  • 错误码
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAscpChannelDistributorQuotationGetRequest req = new AlibabaAscpChannelDistributorQuotationGetRequest();
AlibabaAscpChannelDistributorQuotationGetRequest.TopQuotationPriceRequest obj1 = new AlibabaAscpChannelDistributorQuotationGetRequest.TopQuotationPriceRequest();
obj1.setQuotationId("xxxx");
obj1.setSubQuotationId("xxxx");
obj1.setChannelCode("tmallglobal");
obj1.setSubChannelCode("tmallglobal_blackUnique");
obj1.setProductId("123");
obj1.setSkuId("123");
obj1.setPageNumber(1L);
obj1.setPageSize(20L);
req.setQuotationRequest(obj1);
AlibabaAscpChannelDistributorQuotationGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ascp_channel_distributor_quotation_get_response>
    <result>
        <module>
            <quotation_id>xxxx</quotation_id>
            <status>0</status>
            <start_date>0</start_date>
            <end_date>1</end_date>
            <total_count>1</total_count>
            <page_number>1</page_number>
            <page_size>20</page_size>
            <address_list>
                <top_quotation_address>
                    <province_name>浙江省</province_name>
                    <province_code>330000</province_code>
                    <city_name>杭州市</city_name>
                    <city_code>330100</city_code>
                    <area_name>余杭区</area_name>
                    <area_code>330110</area_code>
                    <street_name>五常街道</street_name>
                    <street_code>330110005</street_code>
                    <division_id>330110005</division_id>
                </top_quotation_address>
            </address_list>
            <item_list>
                <top_quotation_item>
                    <sub_quotation_id>xxxx</sub_quotation_id>
                    <product_id>1234</product_id>
                    <sku_id>1234</sku_id>
                    <price>12</price>
                    <count>12</count>
                </top_quotation_item>
            </item_list>
        </module>
        <error_message>错误信息</error_message>
        <error_code>错误码</error_code>
    </result>
</alibaba_ascp_channel_distributor_quotation_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

返回
顶部