文档中心 > API类目 > 企业运营平台-集团财务

taobao.financial.anypay.upattachment (特付上传附件)

特付上传附件接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param StdFileUploadRequestDto 可选 系统自动生成
  • └ file_name
  • String
  • 可选
  • ab.txt
  • 文件名
  • └ bytes
  • byte[] []
  • 可选
  • [12,32]
  • 字节流

响应参数

名称 类型 示例值 描述
result ResponseModel 返回值
  • └ error_detail_info
  • String
  • null
  • 错误信息
  • └ data
  • Number
  • 123
  • 附件ID
  • └ success
  • Boolean
  • true
  • 状态
  • └ error_code
  • String
  • null
  • 错误码
  • └ error_msg
  • String
  • null
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
FinancialAnypayUpattachmentRequest req = new FinancialAnypayUpattachmentRequest();
FinancialAnypayUpattachmentRequest.StdFileUploadRequestDto obj1 = new FinancialAnypayUpattachmentRequest.StdFileUploadRequestDto();
obj1.setFileName("ab.txt");
req.setParam(obj1);
FinancialAnypayUpattachmentResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<financial_anypay_upattachment_response>
    <result>
        <error_detail_info>null</error_detail_info>
        <data>123</data>
        <success>true</success>
        <error_code>null</error_code>
        <error_msg>null</error_msg>
    </result>
</financial_anypay_upattachment_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

返回
顶部