提交订单
POST
/order/submitOrder
请求参数
Body 参数application/json
buyName
string
订购人
buyPhone
string
订购手机号
cartList
array [object {9}]
商品信息
blessing
string
可选
count
integer
可选
createTime
string
可选
goodsId
integer
可选
imageUrl
string
可选
isChecked
integer
可选
name
string
可选
price
integer
可选
updateTime
string
可选
deliveryDate
string
下单时间
remarks
string
祝福语
userAddressId
integer
收货地址ID
示例
{
"buyName": "string",
"buyPhone": "string",
"cartList": [
{
"blessing": "string",
"count": 0,
"createTime": "string",
"goodsId": 0,
"imageUrl": "string",
"isChecked": 0,
"name": "string",
"price": 0,
"updateTime": "string"
}
],
"deliveryDate": "string",
"remarks": "string",
"userAddressId": 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/submitOrder' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
string
订单 ID
示例
{
"code": 41,
"message": "minim irure sit nisi incididunt",
"data": "consectetur do mollit ea voluptate"
}
修改于 2024-01-03 11:51:06