文档中心 > API类目 > 闲鱼循环商店-前台

alibaba.idle.cycleshop.store.settle.querybyrule (闲鱼循环商店-门店SAAS-根据规则查询结算信息(目前仅用于货品录入流程))

闲鱼循环商店-门店SAAS-根据规则查询结算信息(目前仅用于货品录入流程)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CycleShopSettleByRuleTopQry 必须 请求参数
  • └ total_fee
  • Number
  • 必须
  • 50000
  • 货品售价金额,单位分
  • └ category
  • String
  • 必须
  • 645645745
  • 货品叶子类目id(4级,类目未匹配到则使用全类目的兜底规则)
  • └ pack_id
  • Number
  • 可选
  • 123
  • 包裹id
  • └ cost_price
  • Number
  • 可选
  • 1000
  • 成本价

响应参数

名称 类型 示例值 描述
result CommonResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ err_code
  • String
  • PARAM_ERROR
  • 错误码
  • └ err_msg
  • String
  • 参数不合法
  • 错误描述
  • data
  • CycleShopGoodsSettleTopVO
  • 返回数据
  • └ total_fee
  • Number
  • 50000
  • 货款总金额,单位分
  • └ seller_fee
  • Number
  • 40000
  • 寄卖卖家最终实际金额,单位分

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleCycleshopStoreSettleQuerybyruleRequest req = new AlibabaIdleCycleshopStoreSettleQuerybyruleRequest();
AlibabaIdleCycleshopStoreSettleQuerybyruleRequest.CycleShopSettleByRuleTopQry obj1 = new AlibabaIdleCycleshopStoreSettleQuerybyruleRequest.CycleShopSettleByRuleTopQry();
obj1.setTotalFee(50000L);
obj1.setCategory("645645745");
obj1.setPackId(123L);
obj1.setCostPrice(1000L);
req.setParam(obj1);
AlibabaIdleCycleshopStoreSettleQuerybyruleResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_idle_cycleshop_store_settle_querybyrule_response>
    <result>
        <success>true</success>
        <err_code>PARAM_ERROR</err_code>
        <err_msg>参数不合法</err_msg>
        <data>
            <total_fee>50000</total_fee>
            <seller_fee>40000</seller_fee>
        </data>
    </result>
</alibaba_idle_cycleshop_store_settle_querybyrule_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

返回
顶部