TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlscCrmPointReversepointRequest req = new AlibabaAlscCrmPointReversepointRequest();
AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReq obj1 = new AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReq();
obj1.setBizType("DEDUCT_FROM_CONSUME_REVERSE");
obj1.setBrandId("12332");
obj1.setChangePoint(23L);
obj1.setCustomerId("7027365982937563912722");
obj1.setOperatorId("3484874839");
obj1.setOperatorName("小王");
obj1.setOutBizId("3231231312312");
obj1.setReason("积分回退");
obj1.setRequestId("4325");
obj1.setReverseOrderId("34356785432");
obj1.setShopId("23453435");
obj1.setOutShopId("87766897");
obj1.setOutBrandId("33959");
obj1.setBizChannel("CS/KRY");
req.setParamReverseConsumePointOpenReq(obj1);
AlibabaAlscCrmPointReversepointResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAlscCrmPointReversepointRequest req = new AlibabaAlscCrmPointReversepointRequest();
AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReqDomain obj1 = new AlibabaAlscCrmPointReversepointRequest.ReverseConsumePointOpenReqDomain();
obj1.BizType = "DEDUCT_FROM_CONSUME_REVERSE";
obj1.BrandId = "12332";
obj1.ChangePoint = 23L;
obj1.CustomerId = "7027365982937563912722";
obj1.OperatorId = "3484874839";
obj1.OperatorName = "小王";
obj1.OutBizId = "3231231312312";
obj1.Reason = "积分回退";
obj1.RequestId = "4325";
obj1.ReverseOrderId = "34356785432";
obj1.ShopId = "23453435";
obj1.OutShopId = "87766897";
obj1.OutBrandId = "33959";
obj1.BizChannel = "CS/KRY";
req.ParamReverseConsumePointOpenReq_ = obj1;
AlibabaAlscCrmPointReversepointResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAlscCrmPointReversepointRequest;
$param_reverse_consume_point_open_req = new ReverseConsumePointOpenReq;
$param_reverse_consume_point_open_req->biz_type="DEDUCT_FROM_CONSUME_REVERSE";
$param_reverse_consume_point_open_req->brand_id="12332";
$param_reverse_consume_point_open_req->change_point="23";
$param_reverse_consume_point_open_req->customer_id="7027365982937563912722";
$param_reverse_consume_point_open_req->operator_id="3484874839";
$param_reverse_consume_point_open_req->operator_name="小王";
$param_reverse_consume_point_open_req->out_biz_id="3231231312312";
$param_reverse_consume_point_open_req->reason="积分回退";
$param_reverse_consume_point_open_req->request_id="4325";
$param_reverse_consume_point_open_req->reverse_order_id="34356785432";
$param_reverse_consume_point_open_req->shop_id="23453435";
$param_reverse_consume_point_open_req->out_shop_id="87766897";
$param_reverse_consume_point_open_req->out_brand_id="33959";
$param_reverse_consume_point_open_req->biz_channel="CS/KRY";
$req->setParamReverseConsumePointOpenReq(json_encode($param_reverse_consume_point_open_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.alsc.crm.point.reversepoint' \
-d 'partner_id=apidoc' \
-d 'sign=41E1B468E255D1F72A995D4D8B69E558' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-19+15%3A23%3A31' \
-d 'v=2.0' \
-d 'param_reverse_consume_point_open_req=null'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAlscCrmPointReversepointRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.param_reverse_consume_point_open_req=""
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.alsc.crm.point.reversepoint");
add_param(pRequest,"param_reverse_consume_point_open_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('alibaba.alsc.crm.point.reversepoint', {
'param_reverse_consume_point_open_req':'数据结构JSON示例'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})