文档中心 > API类目 > 阿里健康-疫苗API

alibaba.health.vaccin.appointment.syncpickstatus (同步疫苗预约记录的取号状态)

同步预约记录的取号状态

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_sync_pick_status_req SyncPickStatusReq 可选 请求参数
  • data
  • AppointmentRecordPickStatusDto []
  • 可选
  • 同步的数据,最多一次同步100条记录
  • └ pick_status
  • Number
  • 可选
  • 1
  • 取号状态,0-是,1-否
  • └ appointment_id
  • String
  • 可选
  • A0001
  • 预约记录Id
  • └ pick_time
  • Number
  • 可选
  • 1611039799
  • 取号时间,秒值;2021/1/19 15:3:19传1611039799
  • └ out_biz_id
  • String
  • 可选
  • O0001
  • 外部请求唯一ID,幂等控制
  • └ out_pov_id
  • String
  • 可选
  • P0001
  • 外部pov点唯一标识,isv范围内唯一

响应参数

名称 类型 示例值 描述
result MtopResult 返回结果对象
  • model
  • SyncPickStatusRes
  • 返回业务结果
  • error_list
  • AppointmentPickStatusSyncResultDto []
  • 错误明细
  • └ error_msg
  • String
  • 记录不存在;
  • 如果单个预约记录处理失败,返回失败原因
  • └ appointment_id
  • String
  • 0001
  • 预约记录id
  • └ msg_code
  • String
  • FAIL_BIZ_1001
  • 错误码
  • └ msg_info
  • String
  • 系统繁忙,请稍后重试
  • 错误信息
  • └ success
  • Boolean
  • false
  • 接口是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaHealthVaccinAppointmentSyncpickstatusRequest req = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReq obj1 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.SyncPickStatusReq();
List<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto> list3 = new ArrayList<AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto>();
AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto obj4 = new AlibabaHealthVaccinAppointmentSyncpickstatusRequest.AppointmentRecordPickStatusDto();
list3.add(obj4);
obj4.setPickStatus(1L);
obj4.setAppointmentId("A0001");
obj4.setPickTime(1611039799L);
obj1.setData(list3);
obj1.setOutBizId("O0001");
obj1.setOutPovId("P0001");
req.setParamSyncPickStatusReq(obj1);
AlibabaHealthVaccinAppointmentSyncpickstatusResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_health_vaccin_appointment_syncpickstatus_response>
    <result>
        <model>
            <error_list>
                <appointment_pick_status_sync_result_dto>
                    <error_msg>记录不存在;</error_msg>
                    <appointment_id>0001</appointment_id>
                </appointment_pick_status_sync_result_dto>
            </error_list>
        </model>
        <msg_code>FAIL_BIZ_1001</msg_code>
        <msg_info>系统繁忙,请稍后重试</msg_info>
        <success>false</success>
    </result>
</alibaba_health_vaccin_appointment_syncpickstatus_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部