菜狗商城
  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 参数

Body 参数application/json

示例
{
    "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": 0,
    "data": {},
    "msg": "string"
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2022-03-10 08:43:41
上一页
查询首页新品推荐
下一页
查询订单分页
Built with