- 登录相关
- 首页
- 商品
- 购物车
- 优惠券
- 订单
- 售后
- 收货地址
- 收藏
- 点赞
- 评论
- 种草文章
- 上传
创建订单
开发中
POST
/frontend/order/add/
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
pay_type
integer
必需
remark
string
备注
status
string
必需
price
integer
订单金额 单位分
order_goods_infos
array [object {3}]
必需
goods_id
string
商品id
goods_options_id
string
商品规格id
count
string
数量id
示例
{
"pay_type": 0,
"remark": "string",
"status": "string",
"price": 0,
"order_goods_infos": [
{
"goods_id": "string",
"goods_options_id": "string",
"count": "string"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/frontend/order/add/' \
--header 'Content-Type: application/json' \
--data-raw '{
"pay_type": 0,
"remark": "string",
"status": "string",
"price": 0,
"order_goods_infos": [
{
"goods_id": "string",
"goods_options_id": "string",
"count": "string"
}
]
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2023-02-07 02:37:53