TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
ServindustryFinanceInsuranceInvoiceFeedbackRequest req = new ServindustryFinanceInsuranceInvoiceFeedbackRequest();
ServindustryFinanceInsuranceInvoiceFeedbackRequest.InvoiceResultFeedbackTopReq obj1 = new ServindustryFinanceInsuranceInvoiceFeedbackRequest.InvoiceResultFeedbackTopReq();
obj1.setRealAmount("120");
obj1.setInvoiceApplyId("12412412");
obj1.setExpressNumber("SF12421412");
obj1.setSuccess(true);
obj1.setErrCode("SYSTEM_ERROR");
obj1.setErrMsg("系统异常");
obj1.setInvoiceId("12412421");
obj1.setEmailInvoiceImage("http://invocie.url");
req.setInvoiceResultFeedbackTopReq(obj1);
ServindustryFinanceInsuranceInvoiceFeedbackResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
ServindustryFinanceInsuranceInvoiceFeedbackRequest req = new ServindustryFinanceInsuranceInvoiceFeedbackRequest();
ServindustryFinanceInsuranceInvoiceFeedbackRequest.InvoiceResultFeedbackTopReqDomain obj1 = new ServindustryFinanceInsuranceInvoiceFeedbackRequest.InvoiceResultFeedbackTopReqDomain();
obj1.RealAmount = "120";
obj1.InvoiceApplyId = "12412412";
obj1.ExpressNumber = "SF12421412";
obj1.Success = true;
obj1.ErrCode = "SYSTEM_ERROR";
obj1.ErrMsg = "系统异常";
obj1.InvoiceId = "12412421";
obj1.EmailInvoiceImage = "http://invocie.url";
req.InvoiceResultFeedbackTopReq_ = obj1;
ServindustryFinanceInsuranceInvoiceFeedbackResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new ServindustryFinanceInsuranceInvoiceFeedbackRequest;
$invoice_result_feedback_top_req = new InvoiceResultFeedbackTopReq;
$invoice_result_feedback_top_req->real_amount="120";
$invoice_result_feedback_top_req->invoice_apply_id="12412412";
$invoice_result_feedback_top_req->express_number="SF12421412";
$invoice_result_feedback_top_req->success="true";
$invoice_result_feedback_top_req->err_code="SYSTEM_ERROR";
$invoice_result_feedback_top_req->err_msg="系统异常";
$invoice_result_feedback_top_req->invoice_id="12412421";
$invoice_result_feedback_top_req->email_invoice_image="http://invocie.url";
$req->setInvoiceResultFeedbackTopReq(json_encode($invoice_result_feedback_top_req));
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=taobao.servindustry.finance.insurance.invoice.feedback' \
-d 'partner_id=apidoc' \
-d 'sign=F21FCB8A9E49EC86097A99AB3AA13A96' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-05-05+17%3A50%3A01' \
-d 'v=2.0' \
-d 'invoice_result_feedback_top_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.ServindustryFinanceInsuranceInvoiceFeedbackRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.invoice_result_feedback_top_req="数据结构示例JSON格式"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"taobao.servindustry.finance.insurance.invoice.feedback");
add_param(pRequest,"invoice_result_feedback_top_req","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('taobao.servindustry.finance.insurance.invoice.feedback', {
'invoice_result_feedback_top_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})