文档中心 > API类目 > 信息平台-采购

alibaba.ant.pur.price.query (按品类产品属性批量查询价格)

按品类产品属性批量查询价格

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
access_item_price_batch_query_d_t_o AccessItemPriceBatchQueryDTO 必须 入参
  • attr_list
  • AttrDTO []
  • 必须
  • [{"attrId": 81,"attrValueId": 1210}]
  • 属性列表
  • └ attr_id
  • Number
  • 必须
  • 2
  • 属性id
  • └ attr_value_id
  • Number
  • 必须
  • 3
  • 属性值id
  • └ category_id
  • Number
  • 可选
  • 3
  • 品类id
  • └ contract_code
  • String
  • 必须
  • ewq
  • 合同编码
  • └ end_date
  • String
  • 可选
  • 2022-09-09 00:00:00
  • 结束日期
  • └ product_id_list
  • Number []
  • 必须
  • [1,2]
  • 产品id列表
  • └ start_date
  • String
  • 可选
  • 2022-09-09 00:00:00
  • 开始日期
  • └ supplier_code
  • String
  • 必须
  • 2s
  • 供应商编码
  • └ unique_id
  • String
  • 必须
  • fds
  • 唯一标识
  • └ valid_date
  • String
  • 可选
  • 2022-09-09 00:00:00
  • 适应时间

响应参数

名称 类型 示例值 描述
result ResultModel 结果
  • └ error_code
  • String
  • 1
  • 错误码
  • └ error_message
  • String
  • error
  • 错误信息
  • return_value
  • AccessItemPriceBatchResultDTO []
  • 返回值
  • └ unique_id
  • String
  • dd
  • 唯一标识
  • └ category_id
  • Number
  • 1
  • 品类id
  • └ product_id_list
  • Number []
  • 产品列表
  • └ supplier_code
  • String
  • 1
  • 供应商编码
  • attr_list
  • AttrDTO []
  • 属性列表
  • └ attr_id
  • Number
  • 1
  • 属性id
  • └ attr_value_id
  • Number
  • 1
  • 属性值id
  • └ contract_code
  • String
  • 1
  • 合同编码
  • └ valid_date
  • String
  • 2022-09-09 00:00:00
  • 适用时间
  • └ start_date
  • String
  • 2022-09-09 00:00:00
  • 开始时间
  • └ end_date
  • String
  • 2022-09-09 00:00:00
  • 结束时间
  • └ error_msg
  • String
  • error
  • 错误信息
  • └ error_code
  • String
  • 001
  • 错误码
  • price_list
  • ItemPriceBatchResultDTO []
  • 价格列表
  • └ goods_quotation_id
  • Number
  • 1
  • 报价id
  • └ goods_id
  • Number
  • 1
  • 商品id
  • └ supplier_code
  • String
  • 1
  • 供应商编码
  • └ unit_price
  • String
  • 1
  • 单价
  • └ is_ladder_price
  • String
  • n
  • 是否为阶梯价
  • └ tax_rate
  • String
  • 1
  • 税率
  • └ currency_code
  • String
  • cny
  • 币种
  • └ contract_code
  • String
  • 1
  • 合同编码
  • └ contrac_type
  • String
  • 1
  • 合同类型
  • └ effective_date_str
  • String
  • 2022-09-09 00:00:00
  • 上架时间
  • └ expire_date_str
  • String
  • 2022-09-09 00:00:00
  • 下架时间
  • └ status
  • String
  • 1
  • 状态
  • └ tax_code
  • String
  • 1
  • 税码
  • ladder_price_list
  • CatalogLadderPriceDto []
  • 阶梯价列表
  • └ id
  • Number
  • 1
  • 主键
  • └ goods_quotation_id
  • Number
  • 1
  • 报价id
  • └ minimum_purchase_quantity
  • String
  • 1
  • 最小采购量
  • └ unit_price
  • String
  • 1
  • 单价
  • └ min_purchase_quantity
  • String
  • 1
  • 最小采购量字符
  • └ price
  • String
  • 1
  • 价格标识符
  • └ init_price
  • String
  • 1
  • 初始价格
  • └ uom
  • String
  • 单位
  • └ unit_num
  • String
  • 1
  • 单位数量
  • └ create_date_str
  • String
  • 2022-09-09 00:00:00
  • 创建时间
  • └ success
  • String
  • true
  • 成功标识

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAntPurPriceQueryRequest req = new AlibabaAntPurPriceQueryRequest();
AlibabaAntPurPriceQueryRequest.AccessItemPriceBatchQueryDTO obj1 = new AlibabaAntPurPriceQueryRequest.AccessItemPriceBatchQueryDTO();
List<AlibabaAntPurPriceQueryRequest.AttrDTO> list3 = new ArrayList<AlibabaAntPurPriceQueryRequest.AttrDTO>();
AlibabaAntPurPriceQueryRequest.AttrDTO obj4 = new AlibabaAntPurPriceQueryRequest.AttrDTO();
list3.add(obj4);
obj4.setAttrId(2L);
obj4.setAttrValueId(3L);
obj1.setAttrList(list3);
obj1.setCategoryId(3L);
obj1.setContractCode("ewq");
obj1.setEndDate("2022-09-09 00:00:00");
obj1.setProductIdList(new Long[] { 1,2 };
);
obj1.setStartDate("2022-09-09 00:00:00");
obj1.setSupplierCode("2s");
obj1.setUniqueId("fds");
obj1.setValidDate("2022-09-09 00:00:00");
req.setAccessItemPriceBatchQueryDTO(obj1);
AlibabaAntPurPriceQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ant_pur_price_query_response>
    <result>
        <error_code>1</error_code>
        <error_message>error</error_message>
        <return_value>
            <access_item_price_batch_result_d_t_o>
                <unique_id>dd</unique_id>
                <category_id>1</category_id>
                <supplier_code>1</supplier_code>
                <attr_list>
                    <attr_d_t_o>
                        <attr_id>1</attr_id>
                        <attr_value_id>1</attr_value_id>
                    </attr_d_t_o>
                </attr_list>
                <contract_code>1</contract_code>
                <valid_date>2022-09-09 00:00:00</valid_date>
                <start_date>2022-09-09 00:00:00</start_date>
                <end_date>2022-09-09 00:00:00</end_date>
                <error_msg>error</error_msg>
                <error_code>001</error_code>
                <price_list>
                    <item_price_batch_result_d_t_o>
                        <goods_quotation_id>1</goods_quotation_id>
                        <goods_id>1</goods_id>
                        <supplier_code>1</supplier_code>
                        <unit_price>1</unit_price>
                        <is_ladder_price>n</is_ladder_price>
                        <tax_rate>1</tax_rate>
                        <currency_code>cny</currency_code>
                        <contract_code>1</contract_code>
                        <contrac_type>1</contrac_type>
                        <effective_date_str>2022-09-09 00:00:00</effective_date_str>
                        <expire_date_str>2022-09-09 00:00:00</expire_date_str>
                        <status>1</status>
                        <tax_code>1</tax_code>
                        <ladder_price_list>
                            <catalog_ladder_price_dto>
                                <id>1</id>
                                <goods_quotation_id>1</goods_quotation_id>
                                <minimum_purchase_quantity>1</minimum_purchase_quantity>
                                <unit_price>1</unit_price>
                                <min_purchase_quantity>1</min_purchase_quantity>
                                <price>1</price>
                                <init_price>1</init_price>
                            </catalog_ladder_price_dto>
                        </ladder_price_list>
                        <uom>天</uom>
                        <unit_num>1</unit_num>
                        <create_date_str>2022-09-09 00:00:00</create_date_str>
                    </item_price_batch_result_d_t_o>
                </price_list>
            </access_item_price_batch_result_d_t_o>
        </return_value>
        <success>true</success>
    </result>
</alibaba_ant_pur_price_query_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

返回
顶部