文档中心 > API类目 > 菜鸟末端商业

cainiao.cntec.locallife.print.order.sync (彩萝卜打印订单数据回流)

彩萝卜打印订单数据回流

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
printer_model String 可选 惠普打印机 打印机型号
province_full_name String 可选 陕西省 省名称
district_code Number 可选 1001 区编码
pay_time String 可选 2020-10-05 22:21:36 支付时间
city_code Number 可选 1001 市编码
manager_price String 可选 12.11 门店分成(最多支持两位小数)
discount_price String 可选 12.34 优惠金额(最多支持两位小数)
city_full_name String 可选 西安市 市名称
shop_name String 可选 测试店铺 店铺名称
business_price String 可选 12.21 彩萝卜分成(最多支持两位小数)
district_full_name String 可选 雁塔区 区名称
withdrawn_time String 可选 2020-10-05 22:21:36 分账时间
client_type String 可选 端口类型 端口类型
available_type_name String 可选 介质名称 介质名称
design_count Number 可选 10 打印页数
price String 可选 13.24 金额(最多支持两位小数)
pay_price String 可选 12.00 支付金额(最多支持两位小数)
order_price String 可选 11.11 结算金额(最多支持两位小数)
sn String 必须 10001 订单编号
shop_sn String 必须 10001 门店sn
state String 可选 paid 订单状态
refund_price String 可选 12.11 退款金额(最多支持两位小数)
base_price String 可选 12.11 第三方接口费(最多支持两位小数)
printer_maker String 可选 惠普打印机厂商 打印机厂商
channel_merchant_price String 可选 1.2 经销商分成(最多支持两位小数)
manager String 可选 {"phone":"13456790918","name":"测试店铺"} manager
province_code Number 可选 10001 省编码
patfee String 可选 0.01 手续费(最多支持两位小数)
group_promoter_price String 可选 0.2 地推分成(最多支持两位小数)
third_number String 可选 456 门店编号
sys_price String 可选 0.9 系统抽成(最多支持两位小数)
is_withdrawn Boolean 可选 true 是否完成分账(true:完成 fasle:未完成)
client_num String 可选 001 绑定的端口号
update_time String 必须 2020-10-05 22:21:36 更新时间

响应参数

名称 类型 示例值 描述
trace_id String 2340984084058043850348950 traceId,xx位,链路追踪排查问题使用
e_code String xxx 错误编码
e_msg String xxx 错误信息
is_success Boolean true 是否调用成功
model Boolean true 业务内部是否处理成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoCntecLocallifePrintOrderSyncRequest req = new CainiaoCntecLocallifePrintOrderSyncRequest();
req.setPrinterModel("惠普打印机");
req.setProvinceFullName("陕西省");
req.setDistrictCode(1001L);
req.setPayTime("2020-10-05 22:21:36");
req.setCityCode(1001L);
req.setManagerPrice("12.11");
req.setDiscountPrice("12.34");
req.setCityFullName("西安市");
req.setShopName("测试店铺");
req.setBusinessPrice("12.21");
req.setDistrictFullName("雁塔区");
req.setWithdrawnTime("2020-10-05 22:21:36");
req.setClientType("端口类型");
req.setAvailableTypeName("介质名称");
req.setDesignCount(10L);
req.setPrice("13.24");
req.setPayPrice("12.00");
req.setOrderPrice("11.11");
req.setSn("10001");
req.setShopSn("10001");
req.setState("paid");
req.setRefundPrice("12.11");
req.setBasePrice("12.11");
req.setPrinterMaker("惠普打印机厂商");
req.setChannelMerchantPrice("1.2");
req.setManager("{\"phone\":\"13456790918\",\"name\":\"测试店铺\"}");
req.setProvinceCode(10001L);
req.setPatfee("0.01");
req.setGroupPromoterPrice("0.2");
req.setThirdNumber("456");
req.setSysPrice("0.9");
req.setIsWithdrawn(true);
req.setClientNum("001");
req.setUpdateTime("2020-10-05 22:21:36");
CainiaoCntecLocallifePrintOrderSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_cntec_locallife_print_order_sync_response>
    <trace_id>2340984084058043850348950</trace_id>
    <e_code>xxx</e_code>
    <e_msg>xxx</e_msg>
    <is_success>true</is_success>
    <model>true</model>
</cainiao_cntec_locallife_print_order_sync_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

返回
顶部