文档中心 > API类目 > 阿里健康追溯码

alibaba.alihealth.drug.kyt.codetobill (通过追溯码查单据)

通过追溯码查单据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ref_ent_id String 可选 320000000000127967 企业ID
code String 可选 81853860111704596503 追溯码

响应参数

名称 类型 示例值 描述
result ResultModel 0 监控宝推送网站监控信息,返回结果
  • model
  • CodeToBill
  • 0
  • 返回结果
  • └ code
  • String
  • 818082802324
  • 追溯码
  • bill_identity_list
  • BillIdentity []
  • 0
  • codeToBill列表
  • └ bill_id
  • Number
  • 8012222232
  • 单据iD
  • └ bill_type
  • String
  • 102
  • 单据类型
  • └ msg_code
  • String
  • SUCCESS
  • 调用编码
  • └ msg_info
  • String
  • 调用成功
  • 调用结果
  • └ response_success
  • Boolean
  • true
  • 返回结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthDrugKytCodetobillRequest req = new AlibabaAlihealthDrugKytCodetobillRequest();
req.setRefEntId("320000000000127967");
req.setCode("81853860111704596503");
AlibabaAlihealthDrugKytCodetobillResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_drug_kyt_codetobill_response>
    <result>
        <model>
            <code>818082802324</code>
            <bill_identity_list>
                <bill_identity>
                    <bill_id>8012222232</bill_id>
                    <bill_type>102</bill_type>
                </bill_identity>
            </bill_identity_list>
        </model>
        <msg_code>SUCCESS</msg_code>
        <msg_info>调用成功</msg_info>
        <response_success>true</response_success>
    </result>
</alibaba_alihealth_drug_kyt_codetobill_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

返回
顶部