文档中心 > API类目 > 电子发票

alibaba.einvoice.flow.renew (工单(入驻、加盘、续约)续约)

工单(含入驻、加盘、续约工单)续约能力开放

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
invoice_flow_renew_dto InvoiceFlowRenewDto 必须 续约请求参数
  • └ outer_id
  • String
  • 必须
  • 34543543
  • 外部幂等ID
  • └ parent_flow_id
  • String
  • 必须
  • TB_234234
  • 被续约工单ID
  • └ platform_code
  • String
  • 必须
  • TB
  • 请求来源平台code,由中台生成
  • └ service_valid_days
  • Number
  • 必须
  • 300
  • 服务的有效天数,单位为天

响应参数

名称 类型 示例值 描述
result ServiceResult 返回结果
  • invoice_flow_renew_result
  • InvoiceFlowRenewResultDto
  • 续约返回结果
  • └ flow_id
  • String
  • R_TB_34543543
  • 续约工单ID
  • └ serv_end_time
  • String
  • 2021-12-01 00:00:00
  • 续约单结束时间
  • └ serv_start_time
  • String
  • 2021-04-01 00:00:00
  • 续约单开始时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaEinvoiceFlowRenewRequest req = new AlibabaEinvoiceFlowRenewRequest();
AlibabaEinvoiceFlowRenewRequest.InvoiceFlowRenewDto obj1 = new AlibabaEinvoiceFlowRenewRequest.InvoiceFlowRenewDto();
obj1.setOuterId("34543543");
obj1.setParentFlowId("TB_234234");
obj1.setPlatformCode("TB");
obj1.setServiceValidDays(300L);
req.setInvoiceFlowRenewDto(obj1);
AlibabaEinvoiceFlowRenewResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_einvoice_flow_renew_response>
    <result>
        <invoice_flow_renew_result>
            <flow_id>R_TB_34543543</flow_id>
            <serv_end_time>2021-12-01 00:00:00</serv_end_time>
            <serv_start_time>2021-04-01 00:00:00</serv_start_time>
        </invoice_flow_renew_result>
    </result>
</alibaba_einvoice_flow_renew_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

返回
顶部