文档
测试

创建订单

GET
http://localhost:8089/rlg/order/insert

接口描述

创建订单

请求参数

参数名
类型
描述
必填
shippingId
Integer
收货地址id
必填
payment
BigDecimal
实际支付金额
必填

响应参数

参数名
类型
描述
必填
code
Integer
接口请求状态码
必填
message
String
接口请求返回信息
可选
data
接口请求返回数据
可选

成功案例

{ "code": 200, "data": { "records": [ { "orderId": 1325980102500159488, "shippingVO": { "id": 17, "receiverName": "wx", "receiverPhone": "120", "receiverMobile": "120", "receiverProvince": "山西省", "receiverCity": "吕梁市", "receiverDistrict": "交城县", "receiverAddress": "华鑫苑", "receiverZip": "030500", "type": 1 }, "payment": 140.00, "status": 10, "orderItemVOS": [ { "productId": 10003, "productName": "香蕉", "productImage": "3", "quantity": 10, "totalPrice": 30.00 }, { "productId": 10005, "productName": "版本", "productImage": "5", "quantity": 10, "totalPrice": 50.00 }, { "productId": 10006, "productName": "好是", "productImage": "6", "quantity": 10, "totalPrice": 60.00 } ] } ], "total": 1, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }