入库单创建

系统级参数

名称 类型 是否必须 示例 描述
v String 1.0 版本
format String json 格式,支持:json、xml
sign String 0d72e9537ece8864b7e29d392509fda7 签名
method String store.wms.inorder.create 方法
timestamp int 1435912385 时间戳
task String 14364344528513665503176 任务号
wms_node_id String Wms在ERP唯一
callback_url String 回调URL

业务级参数

名称 类型 示例 描述
uniqid string 请求标识(在ISV即请求方系统中全局唯一),用于控制并发及去重
out_order_code string 客户入库单号
order_type string 订单类型:采购入库: IN_PURCHASE,调拨入库: IN_ALLCOATE,调帐入库: IN_ADJUSTMENT,转储入库: IN_DUMP,换货入库: IN_EXCHANGE,残损入库: IN_DEFECTIVE,其他入库:IN_OTHER
order_source WmsOrderSourcePlatform 订单来源平台
logistics_code string 运输公司编号
logistics_no string 运输公司运单号
remark string 备注
created Date 创建时间
wms_order_code string wms订单编号
is_finished string 该订单是否已完成,如果完成则设置为true,如果为false,则需要等待继续创建订单商品信息。
current_page String 页码
total_page String 总页码
expect_start_time Date 期望开始送达时间
expect_end_time Date 期望结束送达时间
shipper_name string 发货人姓名
shipper_zip string 发货人邮编
shipper_state string
shipper_city string
shipper_district string
shipper_address string 地址
shipper_phone string 电话
shipper_mobile string 手机
shipper_email string 邮箱
total_goods_fee string 总额
line_total_count string 行项目总数
item_total_num string 订单商品明细总数量
storage_code string 库内存放点编号
items WmsOrderItem 商品信息明细列表 (json字符串)

请求参数示例

[{ 
    "uniqid": "69bf6b7bc37cd72d2e40e22e1ed395a5", 
    "out_order_code": "I201507101517008642", 
    "order_type": "IN_PURCHASE", 
    "created": "2015-07-10 15:11:30", 
    "wms_order_code": "I201507101517008642", 
    "logistics_code": "", 
    "logistics_no": "", 
    "remark": null, 
    "shipper_name": "我是供应商", 
    "shipper_zip": "未知", 
    "shipper_state": "未知", 
    "shipper_city": "未知", 
    "shipper_district": "未知", 
    "shipper_address": "未知", 
    "shipper_phone": "未知", 
    "shipper_mobile": "未知", 
    "shipper_email": "未知", 
    "total_goods_fee": "9900.000", 
    "storage_code": "D1", 
    "items": "{\"item\":[{\"item_code\":\"test1\",\"item_name\":\"\\u6d4b\\u8bd5\\u5546\\u54c1\\u4e00\",\"item_quantity\":\"100\",\"item_price\":\"99.000\",\"item_line_num\":1,\"trade_code\":\"\",\"item_id\":\"test1\",\"is_gift\":\"0\",\"item_remark\":\"\",\"inventory_type\":\"1\"}]}", 
    "is_finished": "true", 
    "current_page": 1, 
    "total_page": 1, 
    "item_total_num": 1, 
    "line_total_count": 1, 
    "callback_url": "http://erp.trunk.localhost/index.php/openapi/asynccallback/async_result_handler/id/14365201534491330671339-1436520153", 
    "task": "14365201534491330671339", 
    "v": "1.0", 
    "method": "store.wms.inorder.create", 
    "format": "json", 
    "timestamp": 1436520153, 
    "wms_node_id": "o1111725941", 
    "sign": "0a32bb8fc350ef7acc7e88743f672fff"
}]

响应结果

json格式:
{
    "rsp":"succ",
    "data":{
        "wms_order_code": "LP31209123123",
        "created": "2011-08-16 19:27:29"
    }
}

沪ICP备05002918号

© 2003-2017 ShopEx,Inc.All rights reserved.