注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康保险-信息交互

alibaba.alihealth.insurance.inst.insure.order.info.syn (外部机构向健康同步订单信息)

外部机构向健康同步订单信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
inst_order_id String 必须 Yvdjcnjdvfgd 订单号
pay_time String 必须 2022-01-01 23:59:59 支付时间或退款时间
pay_counts String 必须 1 支付成功购买数量或退款数量
pay_mounts String 必须 189 支付金额或退款金额
notice_type String 必须 PAID_DONE 消息类型,支付成功消息或退款消息
inst_code String 必须 YunTai 机构code
inst_user_id String 必须 22678964 外部机构UserId
pay_serial_number String 必须 574583t56thfg 外部机构流水号(做幂等)
logistics_status String 可选 UNCONSIGNED
  • 默认值:UNCONSIGNED
  • 物流状态,未发货:UNCONSIGNED,已发货:CONSIGNED,DELIVERED:已收货,REVERT:已退货
    extras String 可选 “” 拓展字段,json格式

    响应参数

    名称 类型 示例值 描述
    top_result TopResult 接口返回
    • └ data
    • Boolean
    • true
    • 数据同步结果
    • └ response_status
    • String
    • SUCCESS
    • 响应状态
    • └ response_message
    • String
    • SUCCESS
    • 响应信息
    • └ response_code
    • String
    • SUCCESS
    • 响应码

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaAlihealthInsuranceInstInsureOrderInfoSynRequest req = new AlibabaAlihealthInsuranceInstInsureOrderInfoSynRequest();
    req.setInstOrderId("Yvdjcnjdvfgd");
    req.setPayTime("2022-01-01 23:59:59");
    req.setPayCounts("1");
    req.setPayMounts("189");
    req.setNoticeType("PAID_DONE");
    req.setInstCode("YunTai");
    req.setInstUserId("22678964");
    req.setPaySerialNumber("574583t56thfg");
    req.setLogisticsStatus("UNCONSIGNED");
    req.setExtras("“”");
    AlibabaAlihealthInsuranceInstInsureOrderInfoSynResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_alihealth_insurance_inst_insure_order_info_syn_response>
        <top_result>
            <data>true</data>
            <response_status>SUCCESS</response_status>
            <response_message>SUCCESS</response_message>
            <response_code>SUCCESS</response_code>
        </top_result>
    </alibaba_alihealth_insurance_inst_insure_order_info_syn_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

    返回
    顶部