菜狗商城
  1. 订单管理
菜狗商城
  • 详细地址管理
    • 查询子地区
      GET
  • 首页管理
    • 查询首页分类列表
      GET
    • 查询首页分类商品推荐
      GET
    • 查询首页轮播图
      GET
    • 查询首页新品推荐
      GET
  • 订单管理
    • 添加订单
      POST
    • 查询订单分页
      GET
    • 查询订单状态
      GET
  • 支付回调接口
    • 支付回调接口
      GET
    • 支付回调接口
      HEAD
    • 支付回调接口
      POST
    • 支付回调接口
      PUT
    • 支付回调接口
      DELETE
    • 支付回调接口
      OPTIONS
    • 支付回调接口
      PATCH
  • 商品管理
    • 查询商品评论信息分页
      GET
    • 查询商品评价统计
      GET
    • 查询商品详细信息
      GET
    • 查询商品参数信息
      GET
    • 根据关键字查询商品品牌
      GET
    • 根据类别查询商品品牌
      GET
    • 根据类别查询商品
      GET
    • 根据关键字查询商品
      GET
  • 购物车管理
    • 添加购物车
      POST
    • 删除购物车
      DELETE
    • 查询购物车通过userId
      GET
    • 查询购物车通过cartId
      GET
    • 修改购物车数量
      PUT
  • 用户管理
    • 校验token是否过期
    • 登录接口
    • 注册接口
  • 收货地址管理
    • 添加地址
    • 根据aid查询地址
    • 查询地址
    • 更新地址
    • 删除地址
  1. 订单管理

添加订单

POST
/order/add
订单管理

请求参数

Query 参数
cids
string 
cids
可选
Body 参数application/json
订单
actualAmount
integer <int32>
实际支付总价格
可选
cancelTime
string <date-time>
取消时间
可选
closeType
integer <int32>
可选
订单关闭类型1-超时未支付 2-退款关闭 4-买家取消 15-已通过货到付款交易
createTime
string <date-time>
创建时间
可选
deleteStatus
integer <int32>
可选
逻辑删除状态 1: 删除 0:未删除
deliveryFlowId
string 
物流单号
可选
deliveryTime
string <date-time>
发货时间
可选
deliveryType
string 
配送方式
可选
flishTime
string <date-time>
完成时间
可选
orderFreight
number 
可选
订单运费 默认可以为零,代表包邮
orderId
string 
可选
订单ID 同时也是订单编号
orderRemark
string 
订单备注
可选
payTime
string <date-time>
付款时间
可选
payType
integer <int32>
可选
支付方式 1:微信 2:支付宝
receiverAddress
string 
收货地址快照
可选
receiverMobile
string 
收货人手机号快照
可选
receiverName
string 
收货人快照
可选
status
string 
可选
订单状态 1:待付款 2:待发货 3:待收货 4:待评价 5:已完成 6:已关闭
totalAmount
number 
订单总价格
可选
untitled
string 
可选
产品名称(多个产品用,隔开)
updateTime
string <date-time>
修改时间
可选
userId
integer <int32>
用户ID
可选
示例
{
  "actualAmount": 0,
  "cancelTime": "2019-08-24T14:15:22Z",
  "closeType": 0,
  "createTime": "2019-08-24T14:15:22Z",
  "deleteStatus": 0,
  "deliveryFlowId": "string",
  "deliveryTime": "2019-08-24T14:15:22Z",
  "deliveryType": "string",
  "flishTime": "2019-08-24T14:15:22Z",
  "orderFreight": 0,
  "orderId": "string",
  "orderRemark": "string",
  "payTime": "2019-08-24T14:15:22Z",
  "payType": 0,
  "receiverAddress": "string",
  "receiverMobile": "string",
  "receiverName": "string",
  "status": "string",
  "totalAmount": 0,
  "untitled": "string",
  "updateTime": "2019-08-24T14:15:22Z",
  "userId": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/order/add' \
--header 'Content-Type: application/json' \
--data-raw '{
    "actualAmount": 0,
    "cancelTime": "2019-08-24T14:15:22Z",
    "closeType": 0,
    "createTime": "2019-08-24T14:15:22Z",
    "deleteStatus": 0,
    "deliveryFlowId": "string",
    "deliveryTime": "2019-08-24T14:15:22Z",
    "deliveryType": "string",
    "flishTime": "2019-08-24T14:15:22Z",
    "orderFreight": 0,
    "orderId": "string",
    "orderRemark": "string",
    "payTime": "2019-08-24T14:15:22Z",
    "payType": 0,
    "receiverAddress": "string",
    "receiverMobile": "string",
    "receiverName": "string",
    "status": "string",
    "totalAmount": 0,
    "untitled": "string",
    "updateTime": "2019-08-24T14:15:22Z",
    "userId": 0
}'

返回响应

🟢200OK
application/json
Body
封装接口返回给前端的数据
code
integer <int32>
响应状态码
可选
data
object 
响应数据
可选
msg
string 
响应提示信息
可选
示例
{
  "code": 0,
  "data": {},
  "msg": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2022-03-10 08:43:41
上一页
查询首页新品推荐
下一页
查询订单分页
Built with