上传合同文件
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
file_name | String | 必须 | 合同.pdf | 文件名 | |
file_url | String | 必须 | https://test-tof-oss.voyageone.com/company/file/300363/system_300224_20240311062951/bf90a0e95a8a4c8dab025f655669fc37.pdf?Expires=1717059737&OSSAccessKeyId=LTAI4GEomu3G4Q5wmg2dXgtZ&Signature=yKqJG4KZH44DErJ33xPbe0J19zc= | 文件下载链接 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 结果 | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); TmallTkofContractFileUploadRequest req = new TmallTkofContractFileUploadRequest(); req.setFileName( "合同.pdf" ); TmallTkofContractFileUploadResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < tmall_tkof_contract_file_upload_response > < result > < data >1094324</ data > < success >true</ success > < error_message >上传文件失败</ error_message > < error_code >upload.error</ error_code > </ result > </ tmall_tkof_contract_file_upload_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|