文档中心 > API类目 > 天猫优品

tmall.youpin.sellin.item.purchase.price.query (优品货品当前生效采购价)

优品货品当前生效采购价查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sell_in_item_purchase_price_req SellInItemPurchasePriceReq 必须 入参
  • └ company_id
  • Number
  • 必须
  • 500001000038425
  • 公司ID
  • └ supplier_id
  • Number
  • 必须
  • 1000000000078772
  • 二级供应商ID
  • └ sc_item_id
  • Number
  • 必须
  • 675308920000
  • 货品ID
  • └ biz_time
  • Date
  • 必须
  • 2023-11-10 00:39:11
  • 业务发生时间,默认值为当前时间

响应参数

名称 类型 示例值 描述
result Result [] result
  • └ supplier_id
  • Number
  • 1000000000024727
  • 供应商ID
  • └ is_one_ticket
  • String
  • 一票机
  • └ vat
  • String
  • 0
  • 税率,百分比
  • └ price_type
  • Number
  • 2
  • 采购价类型:1(基准价)、2(区间价)
  • └ price_deadline_date
  • Date
  • 32503651199000
  • 失效时间
  • └ sc_item_id
  • Number
  • 743829988553
  • 货品ID
  • └ purchase_price
  • String
  • 9.8
  • 采购价
  • └ shop_charge_level
  • String
  • 低佣
  • 门店佣金分层
  • └ purchase_point
  • String
  • 0
  • 结构机扣点
  • └ contract_deduction_rate
  • String
  • 2
  • 基础采购扣点
  • └ price_start_date
  • Date
  • 1697904000000
  • 生效时间
  • └ purchase_point_level
  • String
  • 普通
  • 采购扣点分层
  • └ company_id
  • Number
  • 500001000017781
  • 公司ID
  • └ gross_profit_level
  • String
  • 常规
  • 毛保分层
  • └ sale_price_ref
  • String
  • 20
  • 零售促销价
  • └ gross_profit_deduction_rate
  • String
  • 51.00
  • 毛保扣点
  • └ purchase_basic_price
  • String
  • 0
  • 采购基准价
  • └ ex_tax_purchase_price
  • String
  • 0
  • 不含税采购价
  • └ currency
  • String
  • CNY
  • 币种
  • └ commission_deduction_rate
  • String
  • 0
  • 基础服务费率
  • └ settle_account_price
  • String
  • 10
  • B端核算价
rlt Boolean true 是否成功
message String null 消息
exception_code String null 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallYoupinSellinItemPurchasePriceQueryRequest req = new TmallYoupinSellinItemPurchasePriceQueryRequest();
TmallYoupinSellinItemPurchasePriceQueryRequest.SellInItemPurchasePriceReq obj1 = new TmallYoupinSellinItemPurchasePriceQueryRequest.SellInItemPurchasePriceReq();
obj1.setCompanyId(500001000038425L);
obj1.setSupplierId(1000000000078772L);
obj1.setScItemId(675308920000L);
obj1.setBizTime(StringUtils.parseDateTime("2023-11-10 00:39:11"));
req.setSellInItemPurchasePriceReq(obj1);
TmallYoupinSellinItemPurchasePriceQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_youpin_sellin_item_purchase_price_query_response>
    <result>
        <result>
            <supplier_id>1000000000024727</supplier_id>
            <is_one_ticket>否</is_one_ticket>
            <vat>0</vat>
            <price_type>2</price_type>
            <price_deadline_date>32503651199000</price_deadline_date>
            <sc_item_id>743829988553</sc_item_id>
            <purchase_price>9.8</purchase_price>
            <shop_charge_level>低佣</shop_charge_level>
            <purchase_point>0</purchase_point>
            <contract_deduction_rate>2</contract_deduction_rate>
            <price_start_date>1697904000000</price_start_date>
            <purchase_point_level>普通</purchase_point_level>
            <company_id>500001000017781</company_id>
            <gross_profit_level>常规</gross_profit_level>
            <sale_price_ref>20</sale_price_ref>
            <gross_profit_deduction_rate>51.00</gross_profit_deduction_rate>
            <purchase_basic_price>0</purchase_basic_price>
            <ex_tax_purchase_price>0</ex_tax_purchase_price>
            <currency>CNY</currency>
            <commission_deduction_rate>0</commission_deduction_rate>
            <settle_account_price>10</settle_account_price>
        </result>
    </result>
    <rlt>true</rlt>
    <message>null</message>
    <exception_code>null</exception_code>
</tmall_youpin_sellin_item_purchase_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

返回
顶部