- 用户端
- 登录注册
- 服务
- 评价
- 基础配置
- 师傅
- 用户
- 订单
- 支付
- 广告
- 地区
- 搜索
- 管理后台
- 服务管理
- 用户管理
- 师傅管理
- 订单管理
- 广告管理
- 渠道设置
- 系统设置
- 应用管理
- 地区
- 财务管理
- 装修管理
- 师傅端
提交订单
POST
/api/order/placeOrder
请求参数
Header 参数
token
string
必需
默认值:
217ba8ac94c48c81403500017f8c13fc
Body 参数application/x-www-form-urlencoded
goods
string
服务信息
--id
integer
服务id
--goods_num
integer
服务数量
--sku_id
integer
sku_id
action
string
必需
address_id
integer
地址id
appoint_time
string
预约时间
user_remark
string
备注
pay_way
integer
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/order/placeOrder' \
--header 'token;' \
--data-urlencode 'goods=' \
--data-urlencode '--id=' \
--data-urlencode '--goods_num=' \
--data-urlencode '--sku_id=' \
--data-urlencode 'action=' \
--data-urlencode 'address_id=' \
--data-urlencode 'appoint_time=' \
--data-urlencode 'user_remark=' \
--data-urlencode 'pay_way='
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
terminal
integer
必需
total_num
integer
订单服务数量
total_goods_price
integer
订单服务总价
total_amount
integer
订单总价
order_amount
integer
应付款金额
user_id
integer
用户id
user_remark
string
用户备注
appoint_time
string
预约时间
address
object
地址信息
goods
object
服务信息
pay_way
string
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"terminal": 3,
"total_num": 1,
"total_goods_price": 66,
"total_amount": 66,
"order_amount": 66,
"user_id": 36,
"user_remark": "",
"appoint_time": "",
"address": {
"id": 37,
"user_id": 36,
"contact": "王五",
"mobile": "17306643985",
"sex": 1,
"province_id": 440000,
"city_id": 440100,
"district_id": 440113,
"address": "金坑路9号",
"longitude": "113.36821",
"latitude": "23.015272",
"is_default": 1,
"create_time": "2024-11-07 11:31:55",
"update_time": "2024-11-07 11:31:55",
"delete_time": null,
"province": "广东省",
"city": "广州市",
"district": "番禺区",
"sex_desc": "先生"
},
"goods": {
"id": 17,
"category_id": 12,
"skill_id": [
4
],
"open_city_id": null,
"type": 1,
"name": "更换电池",
"remarks": "",
"label": [
"支持不同型号|均可更换"
],
"image": "https://php-smjz.yixiangonline.com/uploads/images/20241105/20241105101938d3b229614.jpg",
"status": 1,
"sort": 0,
"content": "<p><img src=\"https://php-smjz-demo.yixiangonline.com/uploads/images/20241105/202411051153441201c5727.jpg\" alt=\"\" data-href=\"\" style=\"\"/><img src=\"https://php-smjz-demo.yixiangonline.com/uploads/images/20241105/20241105115344e173e5908.jpg\" alt=\"\" data-href=\"\" style=\"\"/></p>",
"sku_type": 1,
"min_price": "66.00",
"max_price": "66.00",
"min_line_price": "0.00",
"max_line_price": "0.00",
"sale_num": 1,
"virtual_sale_num": 1000,
"appoint_start_time": 6,
"appoint_end_time": 24,
"earnings_ratio": "60.00",
"create_time": "2024-11-05 12:17:29",
"update_time": "2024-11-14 15:35:33",
"delete_time": null,
"price": "66.00",
"duration": 30,
"sku_value_arr": [
"苹果电池"
],
"sku_value_ids": "[\"10\"]",
"line_price": "0.00",
"goods_num": 1
},
"pay_way": ""
}
}
修改于 2024-11-14 10:01:22