开发指南 官网
API 2.0 > 11.1 聚合配送 > 11.1.1 订单创建

11.1.1 订单创建

开启令牌和权限后可调用。签名方式请查看开发指南
创建配送订单

请求地址

请求方式 版本信息 请求地址
POST V2 http://openapi.zvcms.com/api/v2

公共参数

参数 参数类型 是否必填 默认值 描述
OpenId string 密钥Id
GrantCode string 授权code
Token string 签名,参考《数字签名sign》
Timestamp string 当前时间戳
Nonce string 随机正整数
Action string communal.delivery.create-order-auto 接口方法
Params array 业务参数

请求参数

参数 参数类型 是否必填 默认值 描述
bizId string 业务id
originOrderNo string 外卖订单订单编号
orderSource int 订单来源:1-微信小程序2- 支付宝口碑3- 支付宝小程序4- 美团5- 饿了么6- 支付宝插件7- 支付宝H58- POS点单9- 代客下单10-商家后台11- 百度12- 餐道ERP14- 蜻蜓IOT13- 饿百15- 青蛙IOT16- 京东到家
orderType int 订单类型 0-及时 1-预约。默认0
shopMark string 门店编码,对应门店关系
purchasePhone string 下单人电话
receiverAddress string 收货人地址
receiverLat number 收货人地址纬度
receiverLng number 收货人地址经度
positionSource int 取货点经纬度来源:0:火星,1:腾讯地图, 2:百度地图, 3:高德地图。默认0
receiverName string 收货人姓名
receiverPhone string 收货人电话
itemsJson array
 ├itemActualPrice number 实际支付金额(精确到两位小数)/元
 ├itemName string 商品名称
 ├itemPrice number 商品单价(精确到两位小数)/元
 ├itemQuantity int 商品数量
 ├itemSpec string 商品规格
 ├itemWeight number 商品重量(精确到两位小数)/kg
 ├productCode string 商品货号
 ├productionTime int 制作时长(秒)
 ├unit string 计量单位
orderWeight number 订单重量(精确到两位小数)/kg
totalAmount number 订单总金额(精确到两位小数)/元
deliveryOrderId int 运单号,再次呼叫需要,否则无法呼叫
expectedDeliveryTime int 期望送达时间(预约单使用-毫秒)
notifyUrl string 运单状态回调地址
orderAddress string 订单详细地址
orderCity string 订单所属城市
orderProvince string 订单所属省份
orderRemark string 订单备注
orderSeq string 取单号
orderZone string 订单所属区域
platformType string 配送渠道 1-美团 2-蜂鸟 3-顺丰 4-达达 6-uu跑腿

响应参数

参数 参数类型 描述

请求示例

{
    "OpenId": "6dc05b4ac175cf316d226252b05cf685",
    "GrantCode": "782c281f62",
    "Timestamp": "1547186244",
    "Nonce": "658965",
    "Token": "0%2B%2B3c6hthjwAml4ABAXOYF4Q6UY%3D",
    "Action": "communal.delivery.create-order-auto",
    "Params": {
        "bizId": "",
        "originOrderNo": "",
        "orderSource": "",
        "orderType": "",
        "shopMark": "",
        "purchasePhone": "",
        "receiverAddress": "",
        "receiverLat": "",
        "receiverLng": "",
        "positionSource": "",
        "receiverName": "",
        "receiverPhone": "",
        "itemsJson": {
            "itemActualPrice": "",
            "itemName": "",
            "itemPrice": "",
            "itemQuantity": "",
            "itemSpec": "",
            "itemWeight": "",
            "productCode": "",
            "productionTime": "",
            "unit": ""
        },
        "orderWeight": "",
        "totalAmount": "",
        "deliveryOrderId": "",
        "expectedDeliveryTime": "",
        "notifyUrl": "",
        "orderAddress": "",
        "orderCity": "",
        "orderProvince": "",
        "orderRemark": "",
        "orderSeq": "",
        "orderZone": "",
        "platformType": ""
    }
} 

响应示例

{
    "status": "true",
    "code": "0",
    "message": "说明",
    "data": []
}

异常示例

{
    "status": true,
    "code": "异常编码,根据不同的业务返回编码",
    "message": "异常说明:查询的信息不存在"
}

错误码

{
    "status": false,
    "code": "系统错误编码:详见全局返回编码",
    "message": "系统错误说明"
}

免费升级

营销功能、插件持续每月更新开发升级

免费专业培训

每月建站、微信营销、电商等互联网增值培训

7×24小时服务支持

400电话、QQ、微信、在线等多渠道售后支持

 

安徽智迈科技股份有限公司 版权所有 Copyright 2009-2018 皖公网安备 34019202000074号 增值电信业务经营许可证:皖B2-20170075