精准捐外部需求导入
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
instance | CsrTargetedDonateInstanceSyncDTO | 必须 | 需求 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | CsrResult | 返回结果 | |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest req = new AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest(); AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest.CsrTargetedDonateInstanceSyncDTO obj1 = new AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest.CsrTargetedDonateInstanceSyncDTO(); AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest.CsrTargetedDonateInstanceInfoDTO obj2 = new AlibabaCsrOpenWorkbenchTargetedInstanceImportRequest.CsrTargetedDonateInstanceInfoDTO(); obj2.setReceiverTel( "18888888888" ); obj2.setExecContent( "为XXX学校送XX物资" ); obj2.setAddress( "xx省/xx市/xx区" ); obj2.setReceiver( "张老师" ); obj2.setBeneficiaryNum( "2" ); obj2.setExecCount(10L); obj2.setDescription( "这是一批捐赠给学校的教学物资,包含文具、书籍等。" ); obj2.setExecName( "文具套装" ); obj2.setReceiverAddress( "广东省广州市天河区某街道某号" ); obj2.setBeneficiary( "XXX学校/三年级一班" ); obj2.setReceiverDesc( "XXX学校老师" ); obj2.setExecType( "生活用品" ); obj2.setStory( "这所学校位于偏远山区,学生缺乏基本的学习用品。希望通过此次捐赠改善他们的学习条件。" ); obj2.setAreaId( "110101" ); obj2.setAcceptSecond(1L); obj2.setUnit( "个" ); obj1.setInstanceInfo(obj2); obj1.setSubmitTime(1740560091108L); obj1.setInstanceOutUniqueId( "123" ); obj1.setBatchId(123L); obj1.setProjectId(123L); req.setInstance(obj1); AlibabaCsrOpenWorkbenchTargetedInstanceImportResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 | < alibaba_csr_open_workbench_targeted_instance_import_response > < result > < fail_msg >参数错误</ fail_msg > < fail_code >500</ fail_code > < has_success >true</ has_success > </ result > </ alibaba_csr_open_workbench_targeted_instance_import_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 > |
错误码 | 错误描述 | 解决方案 |
---|