注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康&一树-孔雀翎WMS

alibaba.health.ys.cep.wms.receivement.callback (线下药店ERP项目-WMS-入库回传)

线下药店ERP项目-WMS-入库回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
record ReceivementEntity 必须 入库
  • └ seller_code
  • String
  • 必须
  • 100001
  • 连锁编码
  • detail_list
  • ReceivementDetailEntity []
  • 必须
  • 入库细单表
  • └ treatment
  • String
  • 可选
  • 退回
  • 处理措施
  • └ ster_lot_no
  • String
  • 可选
  • 20211112
  • 灭菌批号
  • └ valid_date
  • Date
  • 可选
  • 2021-10-11 16:23:23
  • 有效期
  • └ war_code
  • String
  • 可选
  • 10001
  • 仓库编码
  • └ remark
  • String
  • 可选
  • 备注
  • └ source_detail_no
  • String
  • 可选
  • 17899
  • 来源细单号
  • └ lot_no
  • String
  • 可选
  • 20211112
  • 批号
  • └ price
  • String
  • 必须
  • 4.56
  • 单价
  • └ busi_type
  • Number
  • 必须
  • 1
  • 业务类型
  • └ bill_no
  • String
  • 必须
  • CJ202108092324
  • 业务单号
  • └ unqualified_qty
  • String
  • 可选
  • 1
  • 不合格品数量
  • └ qualified_qty
  • String
  • 可选
  • 99
  • 合格品数量
  • └ creator
  • String
  • 必须
  • 张三
  • 创建人
  • └ amount
  • String
  • 必须
  • 451.44
  • 金额
  • └ quantity
  • String
  • 必须
  • 99
  • 数量
  • └ receive_staff
  • String
  • 可选
  • 李四
  • 验收人
  • └ source_bill_no
  • String
  • 可选
  • DA2108092233
  • 来源单号
  • └ auditor
  • String
  • 可选
  • 赵五
  • 审核人
  • └ supply_code
  • String
  • 可选
  • 100010
  • 供应商编码
  • └ inspector
  • String
  • 可选
  • 王六
  • 质检员
  • └ receive_temperature
  • String
  • 可选
  • 19.6
  • 到货温度
  • └ prod_date
  • Date
  • 必须
  • 2021-10-11 16:23:23
  • 生产日期
  • └ receive_time
  • Date
  • 可选
  • 2021-10-11 16:23:23
  • 入库时间
  • └ tax_rate
  • String
  • 可选
  • 13
  • 税率(%)
  • └ create_time
  • Date
  • 必须
  • 2021-10-11 16:23:23
  • 制单时间
  • └ audit_time
  • Date
  • 可选
  • 2021-10-11 16:23:23
  • 审核时间
  • └ detail_no
  • String
  • 可选
  • 1
  • 业务细单号
  • └ war_type
  • Number
  • 可选
  • 0
  • 仓库类型:0-合格,1-待检,2-不合格
  • └ transport_mode
  • String
  • 可选
  • 货车
  • 运输方式
  • └ sample_qty
  • String
  • 可选
  • 10
  • 抽检数量
  • └ goods_code
  • String
  • 必须
  • 112312
  • 商品编码
  • └ dept_code
  • String
  • 可选
  • 100011
  • 门店编码
  • └ temperature_mode
  • String
  • 可选
  • 保温箱
  • 温控方式
  • └ factory_code
  • String
  • 可选
  • 1000
  • 厂家编码
  • └ factory_name
  • String
  • 可选
  • 贵州百灵集团
  • 厂家
  • └ prod_area_code
  • String
  • 可选
  • 2001
  • 产地编码
  • └ prod_area_name
  • String
  • 可选
  • 云南
  • 产地
  • └ warehouse
  • Number
  • 必须
  • 2
  • WMS ID

响应参数

名称 类型 示例值 描述
result ResponseResult 返回结果实体
  • └ result
  • Boolean
  • true
  • 返回数据
  • └ success
  • String
  • true
  • 结果
  • └ error_code
  • String
  • 123
  • 错误码
  • └ error_msg
  • String
  • 123
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthYsCepWmsReceivementCallbackRequest req = new AlibabaHealthYsCepWmsReceivementCallbackRequest();
AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementEntity obj1 = new AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementEntity();
obj1.setSellerCode("100001");
List<AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementDetailEntity> list3 = new ArrayList<AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementDetailEntity>();
AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementDetailEntity obj4 = new AlibabaHealthYsCepWmsReceivementCallbackRequest.ReceivementDetailEntity();
list3.add(obj4);
obj4.setTreatment("退回");
obj4.setSterLotNo("20211112");
obj4.setValidDate(StringUtils.parseDateTime("2021-10-11 16:23:23"));
obj4.setWarCode("10001");
obj4.setRemark("无");
obj4.setSourceDetailNo("17899");
obj4.setLotNo("20211112");
obj4.setPrice("4.56");
obj4.setBusiType(1L);
obj4.setBillNo("CJ202108092324");
obj4.setUnqualifiedQty("1");
obj4.setQualifiedQty("99");
obj4.setCreator("张三");
obj4.setAmount("451.44");
obj4.setQuantity("99");
obj4.setReceiveStaff("李四");
obj4.setSourceBillNo("DA2108092233");
obj4.setAuditor("赵五");
obj4.setSupplyCode("100010");
obj4.setInspector("王六");
obj4.setReceiveTemperature("19.6");
obj4.setProdDate(StringUtils.parseDateTime("2021-10-11 16:23:23"));
obj4.setReceiveTime(StringUtils.parseDateTime("2021-10-11 16:23:23"));
obj4.setTaxRate("13");
obj4.setCreateTime(StringUtils.parseDateTime("2021-10-11 16:23:23"));
obj4.setAuditTime(StringUtils.parseDateTime("2021-10-11 16:23:23"));
obj4.setDetailNo("1");
obj4.setWarType(0L);
obj4.setTransportMode("货车");
obj4.setSampleQty("10");
obj4.setGoodsCode("112312");
obj4.setDeptCode("100011");
obj4.setTemperatureMode("保温箱");
obj4.setFactoryCode("1000");
obj4.setFactoryName("贵州百灵集团");
obj4.setProdAreaCode("2001");
obj4.setProdAreaName("云南");
obj1.setDetailList(list3);
obj1.setWarehouse(2L);
req.setRecord(obj1);
AlibabaHealthYsCepWmsReceivementCallbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_health_ys_cep_wms_receivement_callback_response>
    <result>
        <result>true</result>
        <success>true</success>
        <error_code>123</error_code>
        <error_msg>123</error_msg>
    </result>
</alibaba_health_ys_cep_wms_receivement_callback_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

返回
顶部