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

文档中心 > API类目 > 公益三小时公共

alibaba.csr.donate.invoice.querytoblockchainoss (触发odps任务离线查询公益宝贝开票对账明细)

提供给蚂蚁链上公益团队,用于触发odps任务离线查询公益宝贝开票对账明细

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
account_check_query AccountCheckQuery 必须 公益宝贝开票对账信息查询入参
  • └ merchant_id
  • Number
  • 必须
  • 1234
  • 商家id
  • └ invoice_org_id
  • String
  • 必须
  • 202102167
  • 公益组织id
  • bill_list
  • BillDTO []
  • 必须
  • [ { "billTime": 20210930, "billId": "122332", "class": "com.alibaba.csr.donate.domain.invoice.BillDTO" } ]
  • 账单列表
  • └ bill_time
  • Number
  • 可选
  • 202109
  • 账期
  • └ bill_id
  • String
  • 可选
  • 231213
  • 账单编号
  • └ invoice_id
  • String
  • 必须
  • 261563
  • 开票申请id

响应参数

名称 类型 示例值 描述
fail_msg String 内部服务错误 错误信息
fail_code Number 5051 错误码
has_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCsrDonateInvoiceQuerytoblockchainossRequest req = new AlibabaCsrDonateInvoiceQuerytoblockchainossRequest();
AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.AccountCheckQuery obj1 = new AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.AccountCheckQuery();
obj1.setMerchantId(1234L);
obj1.setInvoiceOrgId("202102167");
List<AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.BillDTO> list3 = new ArrayList<AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.BillDTO>();
AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.BillDTO obj4 = new AlibabaCsrDonateInvoiceQuerytoblockchainossRequest.BillDTO();
list3.add(obj4);
obj4.setBillTime(202109L);
obj4.setBillId("231213");
obj1.setBillList(list3);
obj1.setInvoiceId("261563");
req.setAccountCheckQuery(obj1);
AlibabaCsrDonateInvoiceQuerytoblockchainossResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_csr_donate_invoice_querytoblockchainoss_response>
    <fail_msg>内部服务错误</fail_msg>
    <fail_code>5051</fail_code>
    <has_success>true</has_success>
</alibaba_csr_donate_invoice_querytoblockchainoss_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

返回
顶部