文档中心 > API类目 > 阿里巴巴供应链平台API

tmall.txcs.purchase.price.write (天猫超市采购价写操作)

外部商家可通过该接口同步自己的采购价到采购系统

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
save_purchase_price_dto SavePurchasePriceDto 必须 请求参数
  • └ merchant_code
  • String
  • 必须
  • DARUNFA
  • 商家编号
  • └ marketing_type
  • Number
  • 必须
  • 6
  • 寄售
  • └ price_type
  • Number
  • 必须
  • 1
  • 1:基准价,2:扣点价
  • └ ou_code
  • String
  • 必须
  • DHSD
  • 门店编码
  • └ update_time
  • Number
  • 必须
  • 1590579461000
  • 更新时间, 老的更新时间将会被丢弃
  • └ sales_point
  • String
  • 可选
  • 0.15
  • 扣点
  • └ sku_code
  • String
  • 必须
  • 4353252353
  • skuCode
  • └ purchase_price_with_tax
  • String
  • 必须
  • 2340
  • 含税采购价(最小货币单位)
  • └ currency
  • String
  • 可选
  • CNY
  • 货币类型

响应参数

名称 类型 示例值 描述
succ Boolean true 结果是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallTxcsPurchasePriceWriteRequest req = new TmallTxcsPurchasePriceWriteRequest();
TmallTxcsPurchasePriceWriteRequest.SavePurchasePriceDto obj1 = new TmallTxcsPurchasePriceWriteRequest.SavePurchasePriceDto();
obj1.setMerchantCode("DARUNFA");
obj1.setMarketingType(6L);
obj1.setPriceType(1L);
obj1.setOuCode("DHSD");
obj1.setUpdateTime(1590579461000L);
obj1.setSalesPoint("0.15");
obj1.setSkuCode("4353252353");
obj1.setPurchasePriceWithTax("2340");
obj1.setCurrency("CNY");
req.setSavePurchasePriceDto(obj1);
TmallTxcsPurchasePriceWriteResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_txcs_purchase_price_write_response>
    <succ>true</succ>
</tmall_txcs_purchase_price_write_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

返回
顶部