alibaba.xsd.store.info.update (小时达远转近门店基础信息更新)

小时达远转近门店基础信息更新

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
xsd_store_update_request XsdStoreUpdateRequest 必须 更新入参
  • └ principal
  • String
  • 可选
  • 张三
  • 负责人
  • └ phone
  • String
  • 可选
  • 0571-86997865
  • 门店联系电话
  • └ sub_user_ids
  • String []
  • 可选
  • ["21","322"]
  • 子账号列表
  • └ image_url
  • String
  • 可选
  • https://img.alicdn.com/***.jpg
  • 门店logo,必须是alicdn图片
  • └ store_name
  • String
  • 可选
  • 测试示例店
  • 门店名称
  • xsd_store_business_time
  • XsdStoreBusinessTime
  • 可选
  • 营业时间
  • └ weeks
  • String []
  • 可选
  • [1,2,3]
  • 每周的营业日,可选1-7分别表示周一到周天
  • └ range
  • String
  • 可选
  • "07:00-12:00"
  • 营业时间,不支持多段及跨天
  • └ return_to_store
  • Number
  • 可选
  • 1
  • 是否开启退货到门店 1 开启,0 不开启
  • └ category_id
  • Number
  • 可选
  • 32232
  • 门店经营类目id,从经营类目查询接口获取
  • └ store_code
  • String
  • 必须
  • test_store_code
  • 经营店编码

响应参数

名称 类型 示例值 描述
result ApiResult 返回结果
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ err_code
  • String
  • system_error
  • 错误码
  • └ err_msg
  • String
  • 系统错误
  • 错误描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaXsdStoreInfoUpdateRequest req = new AlibabaXsdStoreInfoUpdateRequest();
AlibabaXsdStoreInfoUpdateRequest.XsdStoreUpdateRequest obj1 = new AlibabaXsdStoreInfoUpdateRequest.XsdStoreUpdateRequest();
obj1.setPrincipal("张三");
obj1.setPhone("0571-86997865");
obj1.setSubUserIds(""21","322"");
obj1.setImageUrl("https://img.alicdn.com/***.jpg");
obj1.setStoreName("测试示例店");
AlibabaXsdStoreInfoUpdateRequest.XsdStoreBusinessTime obj2 = new AlibabaXsdStoreInfoUpdateRequest.XsdStoreBusinessTime();
obj2.setWeeks("1,2,3");
obj2.setRange("\"07:00-12:00\"");
obj1.setXsdStoreBusinessTime(obj2);
obj1.setReturnToStore(1L);
obj1.setCategoryId(32232L);
obj1.setStoreCode("test_store_code");
req.setXsdStoreUpdateRequest(obj1);
AlibabaXsdStoreInfoUpdateResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_xsd_store_info_update_response>
    <result>
        <success>true</success>
        <err_code>system_error</err_code>
        <err_msg>系统错误</err_msg>
    </result>
</alibaba_xsd_store_info_update_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部