创建发货单

系统级参数

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

业务级参数

名称 类型 示例 描述
uniqid String 请求标识(在ISV即请求方系统中全局唯一),用于控制并发及去重
out_order_code WmsOrderSourcePlatform 订单来源平台
platform_order_code String 来源平台单号
shipping_type String 运输方式:EXPRESS-快递 EMS-邮政速递
shipping_fee Price 配送费用
logistics_code String 快递公司编号
logistics_no String 快递单号
shop_code String 店铺编号/售达方编号
remark String 备注
created String 单据创建时间
wms_order_code String wms订单编号
is_finished Boolean 该订单是否已完成,如果完成则设置为true,如果为false,则需要等待继续创建订单商品信息。
current_page Number 当前分页数
total_page Number total_page
has_invoice String 是否开发票。可选值:true(开),false(不开)。默认不开
invoice_type String 发票类型。如果要invoice为true,则此参数为必须。可选值:general(普通发票),vat(增值税发票),special(专用发票)
invoice_title String 发票title。如果要invoice为true,则此参数为必须
invoice_issued_id String 开票方编号
invoice_fee String 发票税金。 如果要invoice为true,则此参数为必须
invoice_info WmsInvoiceInfo 发票信息(json串)。增值税发票类型必填
invoice_item WmsInvoiceItem 发票明细(json串列表)。 invoice_item和invoice_desc二者必选一项(优先取invoice_item)
invoice_desc String 发票内容
discount_fee Price 订单折扣优惠金额
is_protect Boolean 是否保价(针对物流配送)
protect_fee Price 保价费用(针对物流配送)
is_cod Boolean 是否货到付款。可选值:true(是),false(否)
cod_fee Price 应收货款(用于货到付款)
cod_service_fee Price cod服务费(货到付款 必填)
total_goods_fee Price 订单商品总价
total_trade_fee Price 订单交易金额(包括商品价格 + 配送费用 精确到小数点后2位)
receiver_name String 收货人姓名
receiver_zip String 收货人邮政编码
receiver_phone String 收货人电话号码(如有分机号用“-”分隔)(电话和手机必选一项)
receiver_mobile String 收货人手机号码(电话和手机必选一项)
receiver_state String 收货人所在省,如浙江省、北京等
receiver_city String 收货人所在市,如杭州市、上海市等
receiver_district String 收货人所在县(区),注意有些市下面是没有区的,如:义乌市
receiver_address String 收货人的详细地址
receiver_email String 收货人email地址
receiver_time Date 收货人要求到货时间
sign_memo String
storage_code String 库内存放点编号
line_total_count Number 订单商品明细总行数(即整个单据商品明细行数,而不是当前分页的商品明细行数)
item_total_num Number 订单商品明细总数量
items WmsOrderItem 商品信息明细列表(json字符串)
print_remark PrintRemark 面单打印内容字段。(目前只支持京东业务)
dispatch_notify String 配送前是否通知。true 为通知;false 为不通知
dispatch_time Date 配送时间

请求参数示例

[{ 
    "uniqid": "21d3b473af2dc74b3c26a119ef9e86b9", 
    "out_order_code": "1507101100002", 
    "order_source": "OTHER", 
    "shipping_type": "EXPRESS", 
    "shipping_fee": 0, 
    "platform_order_code": "201507101810000486", 
    "logistics_code": "EMS", 
    "shop_code": "taobao", 
    "remark": "", 
    "created": "2015-07-10 18:08:14", 
    "wms_order_code": "1507101100002", 
    "is_finished": "true", 
    "current_page": 1, 
    "total_page": 1, 
    "has_invoice": "false", 
    "invoice_type": null, 
    "invoice_title": null, 
    "invoice_fee": null, 
    "invoice_info": null, 
    "invoice_desc": null, 
    "invoice_item": null, 
    "discount_fee": 0, 
    "is_protect": "false", 
    "protect_fee": "0.000", 
    "is_cod": "true", 
    "cod_fee": 199, 
    "cod_service_fee": "0", 
    "total_goods_fee": 199, 
    "total_trade_fee": 199, 
    "receiver_name": "陈平", 
    "receiver_zip": "200003", 
    "receiver_phone": "201-51086858", 
    "receiver_mobile": "", 
    "receiver_state": "上海", 
    "receiver_city": "上海市", 
    "receiver_district": "徐汇区", 
    "receiver_address": "桂林路396号", 
    "receiver_email": "", 
    "receiver_time": "任意日期 任意时间段", 
    "line_total_count": 1, 
    "item_total_num": 1, 
    "storage_code": "D1", 
    "items": "{\"item\":[{\"item_code\":\"test1\",\"item_name\":\"\\u6d4b\\u8bd5\\u5546\\u54c1\\u4e00\",\"item_quantity\":\"1\",\"item_price\":199,\"item_line_num\":1,\"trade_code\":\"201507101810000486\",\"item_id\":\"test1\",\"is_gift\":\"0\",\"item_remark\":null,\"inventory_type\":\"1\",\"item_sale_price\":199}]}", 
    "print_remark": "", 
    "dispatch_time": null, 
    "callback_url": "http://erp.trunk.localhost/index.php/openapi/asynccallback/async_result_handler/id/143652289523191822590169-1436522895", 
    "task": "143652289523191822590169", 
    "v": "1.0", 
    "method": "store.wms.saleorder.create", 
    "format": "json", 
    "timestamp": 1436522895, 
    "wms_node_id": "o1111725941", 
    "sign": "742d77e6a9ed1db29a976e1ed872565f"
}]

响应结果

名称 类型 是否必须 示例 描述
wms_order_code String 第三方仓储的订单编号
created Date 订单创建时间
json格式:
{
    "rsp":"succ",
    "data":{
        "wms_order_code": "LP31209123123",
        "created": "2011-08-16 19:27:29"
    }
}

沪ICP备05002918号

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