TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaIdleFishmarketAfterSaleStartRequest req = new AlibabaIdleFishmarketAfterSaleStartRequest();
AlibabaIdleFishmarketAfterSaleStartRequest.FishMarketAfterSaleCreateTopReq obj1 = new AlibabaIdleFishmarketAfterSaleStartRequest.FishMarketAfterSaleCreateTopReq();
obj1.setEventId("AFTER_SALE_CREATE");
obj1.setAfterSaleSubType("可不填");
obj1.setSaleType("REAL_TIME_AFTER_SALE");
AlibabaIdleFishmarketAfterSaleStartRequest.ServicePlanInfo obj2 = new AlibabaIdleFishmarketAfterSaleStartRequest.ServicePlanInfo();
List<AlibabaIdleFishmarketAfterSaleStartRequest.CheckItem> list4 = new ArrayList<AlibabaIdleFishmarketAfterSaleStartRequest.CheckItem>();
AlibabaIdleFishmarketAfterSaleStartRequest.CheckItem obj5 = new AlibabaIdleFishmarketAfterSaleStartRequest.CheckItem();
list4.add(obj5);
obj5.setAnswersId("11");
obj5.setQuestionId("11");
obj5.setGroupId("11");
obj5.setErrorValue("11");
obj5.setErrorValueText("无法开机");
obj2.setCheckItemList(list4);
obj2.setApplyMainReason("REPORT_NOT_MATCH");
obj2.setApplySubReason("111");
obj2.setSaleQuestionInfo("手机不符合要求");
obj2.setApplyAmount(1000L);
List<AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificate> list7 = new ArrayList<AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificate>();
AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificate obj8 = new AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificate();
list7.add(obj8);
obj8.setLink("xxx");
obj8.setDescription("xxx");
obj8.setType("PICTURE");
obj8.setOption("可不填");
obj2.setAfterSaleCertificate(list7);
AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleLogistics obj9 = new AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleLogistics();
obj9.setSellerAddressDetail("xxx");
obj9.setSendBackSellerMailNo("xxx");
obj9.setSellerAddressName("xx");
obj9.setSellerAddressPhone("xx");
obj2.setAfterSaleLogistics(obj9);
obj1.setServicePlanInfo(obj2);
obj1.setBuyerOrderId("xxx");
obj1.setAfterSaleType("PRICE_REFUND");
req.setFishMarketAfterSaleCreateTopReq(obj1);
AlibabaIdleFishmarketAfterSaleStartResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaIdleFishmarketAfterSaleStartRequest req = new AlibabaIdleFishmarketAfterSaleStartRequest();
AlibabaIdleFishmarketAfterSaleStartRequest.FishMarketAfterSaleCreateTopReqDomain obj1 = new AlibabaIdleFishmarketAfterSaleStartRequest.FishMarketAfterSaleCreateTopReqDomain();
obj1.EventId = "AFTER_SALE_CREATE";
obj1.AfterSaleSubType = "可不填";
obj1.SaleType = "REAL_TIME_AFTER_SALE";
AlibabaIdleFishmarketAfterSaleStartRequest.ServicePlanInfoDomain obj2 = new AlibabaIdleFishmarketAfterSaleStartRequest.ServicePlanInfoDomain();
List<AlibabaIdleFishmarketAfterSaleStartRequest.CheckItemDomain> list4 = new List<AlibabaIdleFishmarketAfterSaleStartRequest.CheckItemDomain>();
AlibabaIdleFishmarketAfterSaleStartRequest.CheckItemDomain obj5 = new AlibabaIdleFishmarketAfterSaleStartRequest.CheckItemDomain();
list4.Add(obj5);
obj5.AnswersId = "11";
obj5.QuestionId = "11";
obj5.GroupId = "11";
obj5.ErrorValue = "11";
obj5.ErrorValueText = "无法开机";
obj2.CheckItemList= list4;
obj2.ApplyMainReason = "REPORT_NOT_MATCH";
obj2.ApplySubReason = "111";
obj2.SaleQuestionInfo = "手机不符合要求";
obj2.ApplyAmount = 1000L;
List<AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificateDomain> list7 = new List<AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificateDomain>();
AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificateDomain obj8 = new AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleCertificateDomain();
list7.Add(obj8);
obj8.Link = "xxx";
obj8.Description = "xxx";
obj8.Type = "PICTURE";
obj8.Option = "可不填";
obj2.AfterSaleCertificate= list7;
AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleLogisticsDomain obj9 = new AlibabaIdleFishmarketAfterSaleStartRequest.AfterSaleLogisticsDomain();
obj9.SellerAddressDetail = "xxx";
obj9.SendBackSellerMailNo = "xxx";
obj9.SellerAddressName = "xx";
obj9.SellerAddressPhone = "xx";
obj2.AfterSaleLogistics= obj9;
obj1.ServicePlanInfo= obj2;
obj1.BuyerOrderId = "xxx";
obj1.AfterSaleType = "PRICE_REFUND";
req.FishMarketAfterSaleCreateTopReq_ = obj1;
AlibabaIdleFishmarketAfterSaleStartResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaIdleFishmarketAfterSaleStartRequest;
$fish_market_after_sale_create_top_req = new FishMarketAfterSaleCreateTopReq;
$fish_market_after_sale_create_top_req->event_id="AFTER_SALE_CREATE";
$fish_market_after_sale_create_top_req->after_sale_sub_type="可不填";
$fish_market_after_sale_create_top_req->sale_type="REAL_TIME_AFTER_SALE";
$service_plan_info = new ServicePlanInfo;
$check_item_list = new CheckItem;
$check_item_list->answers_id="11";
$check_item_list->question_id="11";
$check_item_list->group_id="11";
$check_item_list->error_value="11";
$check_item_list->error_value_text="无法开机";
$service_plan_info->check_item_list = $check_item_list;
$service_plan_info->apply_main_reason="REPORT_NOT_MATCH";
$service_plan_info->apply_sub_reason="111";
$service_plan_info->sale_question_info="手机不符合要求";
$service_plan_info->apply_amount="1000";
$after_sale_certificate = new AfterSaleCertificate;
$after_sale_certificate->link="xxx";
$after_sale_certificate->description="xxx";
$after_sale_certificate->type="PICTURE";
$after_sale_certificate->option="可不填";
$service_plan_info->after_sale_certificate = $after_sale_certificate;
$after_sale_logistics = new AfterSaleLogistics;
$after_sale_logistics->seller_address_detail="xxx";
$after_sale_logistics->send_back_seller_mail_no="xxx";
$after_sale_logistics->seller_address_name="xx";
$after_sale_logistics->seller_address_phone="xx";
$service_plan_info->after_sale_logistics = $after_sale_logistics;
$fish_market_after_sale_create_top_req->service_plan_info = $service_plan_info;
$fish_market_after_sale_create_top_req->buyer_order_id="xxx";
$fish_market_after_sale_create_top_req->after_sale_type="PRICE_REFUND";
$req->setFishMarketAfterSaleCreateTopReq(json_encode($fish_market_after_sale_create_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=alibaba.idle.fishmarket.after.sale.start' \
-d 'partner_id=apidoc' \
-d 'sign=863C34DA546373318F58654225B8ECF8' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-03-11+19%3A36%3A06' \
-d 'v=2.0' \
-d 'fish_market_after_sale_create_top_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaIdleFishmarketAfterSaleStartRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.fish_market_after_sale_create_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,"alibaba.idle.fishmarket.after.sale.start");
add_param(pRequest,"fish_market_after_sale_create_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',
'url': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.idle.fishmarket.after.sale.start', {
'fish_market_after_sale_create_top_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})