文档
测试
POST
AddReservation

接口描述

预约

请求参数

参数名
类型
描述
必填
dataJson
object
数据字典
必填
member_id
int
会员ID 示例:100001
必填
client_key
string
会员Key 示例:6415960B57B062BFFD62903FB06512E3E6BCB8993C99B74F5B51BC21AB808D5C
必填
name
string
姓别 示例:王老五
必填
phone
string
手机号 示例:15626956789
必填
idtype
int
证件类型 【1身份证号 2回乡证 3港奥通行证 4护照】 示例:1
必填
id_no
string
证件号 示例:430545198605010000
必填
collect_point_id
int
采集点 示例:1
必填
age
int
年龄 注:如果 【证件类型】为 身份证号不需填写,其它证件必填
可选
date
string
预约日期 yyyy-MM-dd
必填
sex
string
性别 【男、女】
必填
time_quantum_id
int
时间段ID
必填
nationality
string
国籍
必填
place_of_residence
string
居住地址
必填
personnel_identity_id
int
人员身份ID
必填
is_insurance
bool
是否参与保险 [true是 false否](慧心平台独有)
必填
is_labor_preferential
bool
是否参与劳工优惠 [true是 false否](慧心平台独有)
可选
labor_certificate
string
劳工证照片 注:参与劳工优惠为true必填
可选
labor_id_no
string
劳工证编号 注:参与劳工优惠为true必填
可选
is_discount
bool
是否参与折扣(40元优惠卷)
可选
yhs_qrcode
string
粤核酸码 非必填 注:只有珠海慧心平台独有
可选
yhs_img
string
粤核酸码图片url 非必填 注:只有珠海慧心平台独有
可选

响应参数

参数名
类型
描述
必填
ret
number
示例:0
必填
err_code
number
示例:0
必填
msg
string
示例:ok
必填
data
object
数据字典
必填
id
int
预约ID 示例:55
必填

说明 / 示例

## 接口地址 ## 成功返回示例 ```language {"data":{"id":55},"ret":0,"err_code":0,"msg":"ok"} ``` >i 注:ret = 0 为成功 ## 失败返回示例 ```language { "ret": 4, "msg": "参数不能为空", "err_code": 10008 } ``` >d 注:ret > 0 为失败 ## 错误编号(errCode):