支持中心 > 热门问题

旅行门票API的 门票商品库存修改接口 日历库存参数示例

提交于: 2016-06-17 09:52:56

你们这个API的  日历库存 长啥样啊?
按照查询接口返回的{"2016-06-17":147,"2016-06-18":147,"2016-06-19":147,"2016-06-20":147}

提交上去不对啊。

请求代码:

 

ITopClient client = new DefaultTopClient(url, appkey, appsecret);

AlitripTicketSkuInventoryModifyRequest req=new AlitripTicketSkuInventoryModifyRequest();

req.Inventory = 696L;

req.SkuId = 3183266530714L;

req.DateInventory = "{"2016-06-17":147,"2016-06-18":147,"2016-06-19":147,"2016-06-20":147}"

req.ItemId = 533715241950L;

req.OuterId = "87";

AlitripTicketSkuInventoryModifyResponse response = client.Execute(req, sessionKey);

返回代码:

 

{"error_response":{"code":15,"msg":"Remote service error","sub_code":"isv.invalid-parameter:NOTNULL","sub_msg":"日历库存不能为空|null","request_id":"iv0kb9l3fdcg"}}

Q: 故宫博物院门票旗舰店 - 王山 - 2016-06-17 09:52:56


 


 

返回
顶部