qimen.alibaba.idle.recycle.book.price (图书估价)

根据图书编码查询回收价格

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
barcode String 必须 978711538025 图书编码
channel String 可选 idle 渠道
channelData String 可选 { "shopUserId": "121212", "subChannel": "xxdsxy" } 渠道扩展参数

响应参数

名称 类型 示例值 描述
price Number 5000 单位 分
oriPrice Number 5000 原价,分
discount String 4.5折 折扣
errMessage String 暂不支持回收 错误描述
success Boolean true 是否成功
errCode String book_unsupport 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlibabaIdleRecycleBookPriceRequest req = new AlibabaIdleRecycleBookPriceRequest();
req.setBarcode("978711538025");
req.setChannel("idle");
req.setChannelData("{     \"shopUserId\": \"121212\",     \"subChannel\": \"xxdsxy\" }");
AlibabaIdleRecycleBookPriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<price>5000</price>
<oriPrice>5000</oriPrice>
<discount>4.5折</discount>
<errMessage>暂不支持回收</errMessage>
<success>true</success>
<errCode>book_unsupport</errCode>

异常示例

  • 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

返回
顶部