TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallAlihousePlatformServiceorderPunishCancelRequest req = new TmallAlihousePlatformServiceorderPunishCancelRequest();
TmallAlihousePlatformServiceorderPunishCancelRequest.ServiceOrderPunishCancelRequest obj1 = new TmallAlihousePlatformServiceorderPunishCancelRequest.ServiceOrderPunishCancelRequest();
obj1.setServiceOrderNo("123123124");
obj1.setRemark("remark");
obj1.setStoreId(1231232L);
obj1.setServiceType(3L);
req.setServiceOrderPunishCancelRequest(obj1);
TmallAlihousePlatformServiceorderPunishCancelResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
TmallAlihousePlatformServiceorderPunishCancelRequest req = new TmallAlihousePlatformServiceorderPunishCancelRequest();
TmallAlihousePlatformServiceorderPunishCancelRequest.ServiceOrderPunishCancelRequestDomain obj1 = new TmallAlihousePlatformServiceorderPunishCancelRequest.ServiceOrderPunishCancelRequestDomain();
obj1.ServiceOrderNo = "123123124";
obj1.Remark = "remark";
obj1.StoreId = 1231232L;
obj1.ServiceType = 3L;
req.ServiceOrderPunishCancelRequest_ = obj1;
TmallAlihousePlatformServiceorderPunishCancelResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new TmallAlihousePlatformServiceorderPunishCancelRequest;
$service_order_punish_cancel_request = new ServiceOrderPunishCancelRequest;
$service_order_punish_cancel_request->service_order_no="123123124";
$service_order_punish_cancel_request->remark="remark";
$service_order_punish_cancel_request->store_id="1231232";
$service_order_punish_cancel_request->service_type="3";
$req->setServiceOrderPunishCancelRequest(json_encode($service_order_punish_cancel_request));
$resp = $c->execute($req, $sessionKey);
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=tmall.alihouse.platform.serviceorder.punish.cancel' \
-d 'partner_id=apidoc' \
-d 'session=05e55ef4-c5bc-45dc-b8f1-78962d6cf604' \
-d 'sign=AA906989F3AF0752B247982BE4174246' \
-d 'sign_method=hmac' \
-d 'timestamp=2026-04-13+22%3A30%3A49' \
-d 'v=2.0' \
-d 'service_order_punish_cancel_request=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.TmallAlihousePlatformServiceorderPunishCancelRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.service_order_punish_cancel_request="数据结构示例JSON格式"
try:
resp= req.getResponse(sessionkey)
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,"tmall.alihouse.platform.serviceorder.punish.cancel");
add_param(pRequest,"service_order_punish_cancel_request","数据结构JSON示例");
pResponse = top_execute(pClient,pRequest,sessionKey);
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('tmall.alihouse.platform.serviceorder.punish.cancel', {
'service_order_punish_cancel_request':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})