TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleRecycleOrderFulfillmentRequest req = new AlibabaIdleRecycleOrderFulfillmentRequest();
AlibabaIdleRecycleOrderFulfillmentRequest.RecycleOrderSynDto obj1 = new AlibabaIdleRecycleOrderFulfillmentRequest.RecycleOrderSynDto();
AlibabaIdleRecycleOrderFulfillmentRequest.Attribute obj2 = new AlibabaIdleRecycleOrderFulfillmentRequest.Attribute();
obj2.setConfirmFee("200");
obj2.setReason("价格协商不一致");
obj2.setMailNo("334021234");
obj2.setRateGrade("1");
obj2.setRateContent("卖家很诚信");
obj2.setArrearageFee("70");
obj2.setAgreementNo("字段已废弃");
obj2.setAlipayUserId("字段已废弃");
obj2.setArrearageLink("https://zm.igooma.cn/Repayment/Index?orderId=1234");
obj2.setQuantity("2");
obj2.setAlipayTradeNo("1192933859293682879");
obj2.setContactName("小明");
obj2.setContactMobile("18011111111");
obj2.setRecycleSupplierId("11223343342");
obj2.setIsvReceiveTime("2021-10-16 12:00:00");
obj2.setRealModel("123");
obj2.setSpuMatch("true");
obj2.setCloseReasonCode("CANCEL_BY_SELLER_DEMAND");
obj2.setRefundLogisticsFee("1200");
obj2.setCompensationFee("100");
obj2.setAgreeUseAddressChange("true");
obj2.setShipTime("取件时间");
obj2.setSellerPhone("1233434");
obj2.setSellerName("test");
obj2.setSellerAddressDetail("杭州市");
obj2.setReportUrl("质检报告url");
obj2.setDetectionFee("100");
obj2.setFreightFee("100");
obj2.setQuotationFee("100");
obj2.setHandlingFee("100");
obj2.setGoldPrice("100");
obj2.setAdditionalInfo("xxx");
obj2.setGoldTotalPrice("100");
obj2.setHandlingTotalFee("100");
obj1.setAttribute(obj2);
obj1.setBizOrderId("330212345");
obj1.setOrderStatus("2");
obj1.setPartnerKey("1234");
req.setParam0(obj1);
AlibabaIdleRecycleOrderFulfillmentResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleRecycleOrderFulfillmentRequest req = new AlibabaIdleRecycleOrderFulfillmentRequest();
AlibabaIdleRecycleOrderFulfillmentRequest.RecycleOrderSynDtoDomain obj1 = new AlibabaIdleRecycleOrderFulfillmentRequest.RecycleOrderSynDtoDomain();
AlibabaIdleRecycleOrderFulfillmentRequest.AttributeDomain obj2 = new AlibabaIdleRecycleOrderFulfillmentRequest.AttributeDomain();
obj2.ConfirmFee = "200";
obj2.Reason = "价格协商不一致";
obj2.MailNo = "334021234";
obj2.RateGrade = "1";
obj2.RateContent = "卖家很诚信";
obj2.ArrearageFee = "70";
obj2.AgreementNo = "字段已废弃";
obj2.AlipayUserId = "字段已废弃";
obj2.ArrearageLink = "https://zm.igooma.cn/Repayment/Index?orderId=1234";
obj2.Quantity = "2";
obj2.AlipayTradeNo = "1192933859293682879";
obj2.ContactName = "小明";
obj2.ContactMobile = "18011111111";
obj2.RecycleSupplierId = "11223343342";
obj2.IsvReceiveTime = "2021-10-16 12:00:00";
obj2.RealModel = "123";
obj2.SpuMatch = "true";
obj2.CloseReasonCode = "CANCEL_BY_SELLER_DEMAND";
obj2.RefundLogisticsFee = "1200";
obj2.CompensationFee = "100";
obj2.AgreeUseAddressChange = "true";
obj2.ShipTime = "取件时间";
obj2.SellerPhone = "1233434";
obj2.SellerName = "test";
obj2.SellerAddressDetail = "杭州市";
obj2.ReportUrl = "质检报告url";
obj2.DetectionFee = "100";
obj2.FreightFee = "100";
obj2.QuotationFee = "100";
obj2.HandlingFee = "100";
obj2.GoldPrice = "100";
obj2.AdditionalInfo = "xxx";
obj2.GoldTotalPrice = "100";
obj2.HandlingTotalFee = "100";
obj1.Attribute= obj2;
obj1.BizOrderId = "330212345";
obj1.OrderStatus = "2";
obj1.PartnerKey = "1234";
req.Param0_ = obj1;
AlibabaIdleRecycleOrderFulfillmentResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleRecycleOrderFulfillmentRequest;
$param0 = new RecycleOrderSynDto;
$attribute = new Attribute;
$attribute->confirm_fee="200";
$attribute->reason="价格协商不一致";
$attribute->mail_no="334021234";
$attribute->rate_grade="1";
$attribute->rate_content="卖家很诚信";
$attribute->arrearage_fee="70";
$attribute->agreement_no="字段已废弃";
$attribute->alipay_user_id="字段已废弃";
$attribute->arrearage_link="https://zm.igooma.cn/Repayment/Index?orderId=1234";
$attribute->quantity="2";
$attribute->alipay_trade_no="1192933859293682879";
$attribute->contact_name="小明";
$attribute->contact_mobile="18011111111";
$attribute->recycle_supplier_id="11223343342";
$attribute->isv_receive_time="2021-10-16 12:00:00";
$attribute->real_model="123";
$attribute->spu_match="true";
$attribute->close_reason_code="CANCEL_BY_SELLER_DEMAND";
$attribute->refund_logistics_fee="1200";
$attribute->compensation_fee="100";
$attribute->agree_use_address_change="true";
$attribute->ship_time="取件时间";
$attribute->seller_phone="1233434";
$attribute->seller_name="test";
$attribute->seller_address_detail="杭州市";
$attribute->report_url="质检报告url";
$attribute->detection_fee="100";
$attribute->freight_fee="100";
$attribute->quotation_fee="100";
$attribute->handling_fee="100";
$attribute->gold_price="100";
$attribute->additional_info="xxx";
$attribute->gold_total_price="100";
$attribute->handling_total_fee="100";
$param0->attribute = $attribute;
$param0->biz_order_id="330212345";
$param0->order_status="2";
$param0->partner_key="1234";
$req->setParam0(json_encode($param0));
$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.idle.recycle.order.fulfillment' \
-d 'partner_id=apidoc' \
-d 'sign=FC1B64DA11C7D2130E9C8D8CF41DB746' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-28+00%3A31%3A42' \
-d 'v=2.0' \
-d 'param0=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleRecycleOrderFulfillmentRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param0=""
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.idle.recycle.order.fulfillment");
add_param(pRequest,"param0","数据结构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.idle.recycle.order.fulfillment', {
'param0':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})