TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSscYichaoClaimStartRequest req = new AlibabaSscYichaoClaimStartRequest();
AlibabaSscYichaoClaimStartRequest.AttachmentInfo obj1 = new AlibabaSscYichaoClaimStartRequest.AttachmentInfo();
obj1.setPath("xxx.img");
obj1.setName("xxx");
obj1.setDescription("to_door_photo");
req.setAttachments(obj1);
req.setBizDataString("{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }");
req.setWorkCardId(123442L);
req.setClaimFee(1000L);
AlibabaSscYichaoClaimStartResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaSscYichaoClaimStartRequest req = new AlibabaSscYichaoClaimStartRequest();
AlibabaSscYichaoClaimStartRequest.AttachmentInfoDomain obj1 = new AlibabaSscYichaoClaimStartRequest.AttachmentInfoDomain();
obj1.Path = "xxx.img";
obj1.Name = "xxx";
obj1.Description = "to_door_photo";
req.Attachments_ = obj1;
req.BizData = "{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }";
req.WorkCardId = 123442L;
req.ClaimFee = 1000L;
AlibabaSscYichaoClaimStartResponse rsp = client.Execute(req, sessionKey);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaSscYichaoClaimStartRequest;
$attachments = new AttachmentInfo;
$attachments->path="xxx.img";
$attachments->name="xxx";
$attachments->description="to_door_photo";
$req->setAttachments(json_encode($attachments));
$req->setBizData("{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }");
$req->setWorkCardId("123442");
$req->setClaimFee("1000");
$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=alibaba.ssc.yichao.claim.start' \
-d 'partner_id=apidoc' \
-d 'session=5c8cf314-ddb8-4e57-8025-77cf47e8848e' \
-d 'sign=C1AAE5DAF2D75119BAC400311C7B0C28' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+17%3A31%3A10' \
-d 'v=2.0' \
-d 'attachments=+++++++%7B+++++++++%22path%22%3A+%221234%22%2C+++++++++%22name%22%3A+%221234%22%2C+++++++++%22description%22%3A+%22to_door_photo%22%2C+++++++++%22class%22%3A+%22com.alibaba.ssc.electric.service.client.insurance.model.param.AttachmentInfo%22+++++++%7D' \
-d 'biz_data=%7B+++++++%5C%22claimInsuranceLiabilityType%5C%22%3A+%5C%22accident%5C%22%2C+++++++%5C%22serviceProviderId%5C%22%3A+%5C%222200784577670%5C%22%2C+++++++%5C%22checkFee%5C%22%3A+1%2C+++++++%5C%22newMachineFee%5C%22%3A+0%2C+++++++%5C%22transportFee%5C%22%3A+0%2C+++++++%5C%22purchaseServiceFee%5C%22%3A+0%2C+++++++%5C%22residualAmount%5C%22%3A+0%2C+++++++%5C%22repairCompleteDate%5C%22%3A+%5C%221717398974057%5C%22%2C+++++++%5C%22serviceProviderName%5C%22%3A+%5C%22%E4%B9%90%E6%9C%B5%E6%B5%8B%E8%AF%95%E5%95%86%E5%AE%B6%E8%B4%A6%E5%8F%B7002%5C%22%2C+++++++%5C%22tpCategory%5C%22%3A+%5C%221%5C%22%2C+++++++%5C%22repairStartDate%5C%22%3A+%5C%221717398974057%5C%22%2C+++++++%5C%22applyTime%5C%22%3A+%5C%221717398974057%5C%22%2C+++++++%5C%22phone_imei%5C%22%3A+%5C%221%5C%22%2C+++++++%5C%22serviceTaskId%5C%22%3A%5C%22916948007%5C%22%2C+++++++%5C%22claimFee%5C%22%3A%5C%221%5C%22+++++%7D' \
-d 'claim_fee=1000' \
-d 'work_card_id=123442'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaSscYichaoClaimStartRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.attachments="[ { \"path\": \"1234\", \"name\": \"1234\", \"description\": \"to_door_photo\", \"class\": \"com.alibaba.ssc.electric.service.client.insurance.model.param.AttachmentInfo\" }]"
req.biz_data="{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }"
req.work_card_id=123442
req.claim_fee=1000
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,"alibaba.ssc.yichao.claim.start");
add_param(pRequest,"attachments","数据结构JSON示例");
add_param(pRequest,"biz_data","{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }");
add_param(pRequest,"work_card_id","123442");
add_param(pRequest,"claim_fee","1000");
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',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.ssc.yichao.claim.start', {
'attachments':'数据结构JSON示例',
'biz_data':'{ \"claimInsuranceLiabilityType\": \"accident\", \"serviceProviderId\": \"2200784577670\", \"checkFee\": 1, \"newMachineFee\": 0, \"transportFee\": 0, \"purchaseServiceFee\": 0, \"residualAmount\": 0, \"repairCompleteDate\": \"1717398974057\", \"serviceProviderName\": \"乐朵测试商家账号002\", \"tpCategory\": \"1\", \"repairStartDate\": \"1717398974057\", \"applyTime\": \"1717398974057\", \"phone_imei\": \"1\", \"serviceTaskId\":\"916948007\", \"claimFee\":\"1\" }',
'work_card_id':'123442',
'claim_fee':'1000'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})