文档中心 > API类目 > 天猫国际API

taobao.tmallglobal.seller.company.change.sync (天猫国际商家公司变更同步API)

天猫国际商家公司变更同步API,从VO同步探物供应商公司和资质变更事件

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tmmp_change_msg TmmpChangeMsg 必须 归一业务公司、资质变更消息体对象
  • └ change_time
  • String
  • 必须
  • 2024-11-11 00:11:23
  • 变更时间,格式:yyyy-MM-dd HH:mm:ss
  • └ biz_type
  • String
  • 必须
  • TANWU
  • 业务身份类型,如淘分销、国际平台、国际直营、探物
  • └ change_scene_list
  • String []
  • 必须
  • ["companyChange"]
  • 变更场景类型列表
  • └ biz_id
  • String
  • 必须
  • 621
  • 业务id,如探物的供应商编号

响应参数

名称 类型 示例值 描述
result BaseResult 接口返回
  • └ data
  • Boolean
  • true
  • 空对象,默认为null
  • └ success
  • Boolean
  • true
  • 接口请求结果,是否成功
  • └ error_message
  • String
  • xxx参数不能为空
  • 错误信息
  • └ error_code
  • String
  • 999
  • 错误码code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallglobalSellerCompanyChangeSyncRequest req = new TmallglobalSellerCompanyChangeSyncRequest();
TmallglobalSellerCompanyChangeSyncRequest.TmmpChangeMsg obj1 = new TmallglobalSellerCompanyChangeSyncRequest.TmmpChangeMsg();
obj1.setChangeTime("2024-11-11 00:11:23");
obj1.setBizType("TANWU");
obj1.setChangeSceneList(""companyChange"");
obj1.setBizId("621");
req.setTmmpChangeMsg(obj1);
TmallglobalSellerCompanyChangeSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmallglobal_seller_company_change_sync_response>
    <result>
        <data>true</data>
        <success>true</success>
        <error_message>xxx参数不能为空</error_message>
        <error_code>999</error_code>
    </result>
</tmallglobal_seller_company_change_sync_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

返回
顶部