创建订单接口
开发中
POST
http://159.75.169.224:7300/pz/pay/createOrder
请求参数
Header 参数
token
string
必需
Body 参数application/json
address
object
陪跑收件人信息
cityName
string
必需
countyName
string
必需
detailInfo
string
必需
userName
string
必需
demand
string
服务需求
hospital_id
number
医院id
hospital_name
string
医院名字
receiveAddress
string
接送地址
service_code
string
服务code
service_id
number
服务id
service_name
string
服务名称
service_stype
string
服务类型
starttime
number
服务开始时间戳
tel
string
电话
client
object
就诊人
age
number
必需
mobile
string
必需
name
string
必需
sex
number
必需
示例
{
"address": {
"cityName": "string",
"countyName": "string",
"detailInfo": "string",
"userName": "string"
},
"demand": "string",
"hospital_id": 0,
"hospital_name": "string",
"receiveAddress": "string",
"service_code": "string",
"service_id": 0,
"service_name": "string",
"service_stype": "string",
"starttime": 0,
"tel": "string",
"client": {
"age": 0,
"mobile": "string",
"name": "string",
"sex": 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 'http://159.75.169.224:7300/pz/pay/createOrder' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
wx_code
string
必需
示例
{
"code": 10000,
"wx_code": "weixin://wxpay/bizpayurl?pr=125632565"
}
修改于 2023-12-27 02:37:16