TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCfoIncomingInvoiceRedconfirmationSynRequest req = new AlibabaCfoIncomingInvoiceRedconfirmationSynRequest();
AlibabaCfoIncomingInvoiceRedconfirmationSynRequest.RedConfirmationSynCallBackRequest obj1 = new AlibabaCfoIncomingInvoiceRedconfirmationSynRequest.RedConfirmationSynCallBackRequest();
obj1.setRedLetterNumber("aaaaaa");
obj1.setAmountWithoutTax("12");
obj1.setOriginalAmountWithoutTax("10");
obj1.setBuyerTaxNo("8384748384758483");
obj1.setAccountType("AP");
obj1.setApplyReason("making_error");
obj1.setSellerName("某有限公司");
obj1.setOriginalAmountWithTax("12");
obj1.setCustomerSerialNo("2342342342");
obj1.setOriginalInvoiceNo("16373627363736253647");
obj1.setBuyerName("某有限公司");
obj1.setOriginalTaxAmount("2");
obj1.setIssueStatus(1L);
obj1.setSellerTaxNo("1234567890123456");
obj1.setRedInvoiceCode("11111111");
obj1.setRedInvoiceNo("11111111111111111111");
obj1.setApplyDate("1721874325000");
obj1.setAmountWithTax("12");
obj1.setTaxAmount("2");
obj1.setApplyStatus("00");
req.setSynRedConfirmationCallBackRequest(obj1);
AlibabaCfoIncomingInvoiceRedconfirmationSynResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaCfoIncomingInvoiceRedconfirmationSynRequest req = new AlibabaCfoIncomingInvoiceRedconfirmationSynRequest();
AlibabaCfoIncomingInvoiceRedconfirmationSynRequest.RedConfirmationSynCallBackRequestDomain obj1 = new AlibabaCfoIncomingInvoiceRedconfirmationSynRequest.RedConfirmationSynCallBackRequestDomain();
obj1.RedLetterNumber = "aaaaaa";
obj1.AmountWithoutTax = "12";
obj1.OriginalAmountWithoutTax = "10";
obj1.BuyerTaxNo = "8384748384758483";
obj1.AccountType = "AP";
obj1.ApplyReason = "making_error";
obj1.SellerName = "某有限公司";
obj1.OriginalAmountWithTax = "12";
obj1.CustomerSerialNo = "2342342342";
obj1.OriginalInvoiceNo = "16373627363736253647";
obj1.BuyerName = "某有限公司";
obj1.OriginalTaxAmount = "2";
obj1.IssueStatus = 1L;
obj1.SellerTaxNo = "1234567890123456";
obj1.RedInvoiceCode = "11111111";
obj1.RedInvoiceNo = "11111111111111111111";
obj1.ApplyDate = "1721874325000";
obj1.AmountWithTax = "12";
obj1.TaxAmount = "2";
obj1.ApplyStatus = "00";
req.SynRedConfirmationCallBackRequest_ = obj1;
AlibabaCfoIncomingInvoiceRedconfirmationSynResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaCfoIncomingInvoiceRedconfirmationSynRequest;
$syn_red_confirmation_call_back_request = new RedConfirmationSynCallBackRequest;
$syn_red_confirmation_call_back_request->red_letter_number="aaaaaa";
$syn_red_confirmation_call_back_request->amount_without_tax="12";
$syn_red_confirmation_call_back_request->original_amount_without_tax="10";
$syn_red_confirmation_call_back_request->buyer_tax_no="8384748384758483";
$syn_red_confirmation_call_back_request->account_type="AP";
$syn_red_confirmation_call_back_request->apply_reason="making_error";
$syn_red_confirmation_call_back_request->seller_name="某有限公司";
$syn_red_confirmation_call_back_request->original_amount_with_tax="12";
$syn_red_confirmation_call_back_request->customer_serial_no="2342342342";
$syn_red_confirmation_call_back_request->original_invoice_no="16373627363736253647";
$syn_red_confirmation_call_back_request->buyer_name="某有限公司";
$syn_red_confirmation_call_back_request->original_tax_amount="2";
$syn_red_confirmation_call_back_request->issue_status="1";
$syn_red_confirmation_call_back_request->seller_tax_no="1234567890123456";
$syn_red_confirmation_call_back_request->red_invoice_code="11111111";
$syn_red_confirmation_call_back_request->red_invoice_no="11111111111111111111";
$syn_red_confirmation_call_back_request->apply_date="1721874325000";
$syn_red_confirmation_call_back_request->amount_with_tax="12";
$syn_red_confirmation_call_back_request->tax_amount="2";
$syn_red_confirmation_call_back_request->apply_status="00";
$req->setSynRedConfirmationCallBackRequest(json_encode($syn_red_confirmation_call_back_request));
$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=alibaba.cfo.incoming.invoice.redconfirmation.syn' \
-d 'partner_id=apidoc' \
-d 'sign=D0D03CAFE565119510C889E339B948DC' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-07-15+07%3A05%3A46' \
-d 'v=2.0' \
-d 'syn_red_confirmation_call_back_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaCfoIncomingInvoiceRedconfirmationSynRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.syn_red_confirmation_call_back_request="数据结构示例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,"alibaba.cfo.incoming.invoice.redconfirmation.syn");
add_param(pRequest,"syn_red_confirmation_call_back_request","数据结构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('alibaba.cfo.incoming.invoice.redconfirmation.syn', {
'syn_red_confirmation_call_back_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})