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

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

alibaba.alihealth.multichannel.invoice.apply (外渠道订单发票申请)

阿里健康多渠道订单发票申请

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
invoice ApplyInvoiceRequestDTO 必须 开票请求体
  • └ out_order_id
  • String
  • 必须
  • 1234567890
  • 外部订单id
  • └ tax_number
  • String
  • 可选
  • TAX1234567
  • 公司纳税人识别号
  • └ shop_id
  • String
  • 必须
  • 0002345
  • 店铺id
  • └ invoice_title
  • String
  • 必须
  • 阿里健康科技有限公司
  • 发票抬头

响应参数

名称 类型 示例值 描述
result Result { "error_code": "200", "data": {"req_no":"ReqNO1230304"}, "error_msg": "请求成功", "success": true, "traceId": "0bfb837316298654845266612e71ca" } 返回结果
  • └ msg
  • String
  • 请求成功
  • 错误信息
  • └ trace_id
  • String
  • 0bfb837316298654845266612e71ca
  • 鹰眼id,用于排查问题
  • └ code
  • String
  • 200
  • 错误码
  • data
  • ApplyInvoiceResponseDTO
  • "data": {"req_no":"ReqNO1230304"},
  • 返回数据
  • └ req_no
  • String
  • "ReqNO1230304"
  • 申请开票流水号
  • └ success
  • Boolean
  • true
  • 请求成功状态

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthMultichannelInvoiceApplyRequest req = new AlibabaAlihealthMultichannelInvoiceApplyRequest();
AlibabaAlihealthMultichannelInvoiceApplyRequest.ApplyInvoiceRequestDTO obj1 = new AlibabaAlihealthMultichannelInvoiceApplyRequest.ApplyInvoiceRequestDTO();
obj1.setOutOrderId("1234567890");
obj1.setTaxNumber("TAX1234567");
obj1.setShopId("0002345");
obj1.setInvoiceTitle("阿里健康科技有限公司");
req.setInvoice(obj1);
AlibabaAlihealthMultichannelInvoiceApplyResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_multichannel_invoice_apply_response>
    <result>
        <msg>请求成功</msg>
        <trace_id>0bfb837316298654845266612e71ca</trace_id>
        <code>200</code>
        <data>
            <req_no>&quot;ReqNO1230304&quot;</req_no>
        </data>
        <success>true</success>
    </result>
</alibaba_alihealth_multichannel_invoice_apply_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

返回
顶部