文档中心 > API类目 > 天猫汽车

tmall.car.position.sync (同步 - 车型用量表)

同步 - 车型用量表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
tmall_position_amount_list PositionAmountDto [] 必须
  • 最大列表长度:999
  • 车型用量列表
    • └ ac_id
    • Number
    • 必须
    • 11
    • 5级车型id
    • └ unit
    • String
    • 必须
    • 1
    • 单位
    • └ creationtime
    • Date
    • 必须
    • 2019-08-17 11:23:03
    • 创建日期
    • └ tmall_category_id
    • Number
    • 必须
    • 1
    • 天猫类目id
    • └ creator
    • String
    • 可选
    • zyt
    • 创建人
    • └ modifiedtime
    • Date
    • 必须
    • 2019-08-17 11:23:03
    • 修改日期
    • └ position_amount
    • Number
    • 必须
    • 11
    • 具体安装数量
    • └ tmall_position_id
    • Number
    • 必须
    • 1
    • 天猫位置id
    • └ modifier
    • String
    • 可选
    • zyt
    • 修改人
    • └ is_deleted
    • Number
    • 必须
    • 1
    • 是否删除:0 未删除,1 已删除
    • └ id
    • Number
    • 必须
    • 1
    • 主键

    响应参数

    名称 类型 示例值 描述
    result Result 接口返回model
    • └ data
    • Boolean
    • 1234
    • 返回素材id
    • └ success
    • Boolean
    • false
    • 是否成功
    • └ error_code
    • Number
    • "isv.invalid-parameter"
    • 错误码
    • └ error_msg
    • String
    • "参数错误"
    • 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    TmallCarPositionSyncRequest req = new TmallCarPositionSyncRequest();
    List<TmallCarPositionSyncRequest.PositionAmountDto> list2 = new ArrayList<TmallCarPositionSyncRequest.PositionAmountDto>();
    TmallCarPositionSyncRequest.PositionAmountDto obj3 = new TmallCarPositionSyncRequest.PositionAmountDto();
    list2.add(obj3);
    obj3.setAcId(11L);
    obj3.setUnit("1");
    obj3.setCreationtime(StringUtils.parseDateTime("2019-08-17 11:23:03"));
    obj3.setTmallCategoryId(1L);
    obj3.setCreator("zyt");
    obj3.setModifiedtime(StringUtils.parseDateTime("2019-08-17 11:23:03"));
    obj3.setPositionAmount(11L);
    obj3.setTmallPositionId(1L);
    obj3.setModifier("zyt");
    obj3.setIsDeleted(1L);
    obj3.setId(1L);
    req.setTmallPositionAmountList(list2);
    TmallCarPositionSyncResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <tmall_car_position_sync_response>
        <result>
            <data>1234</data>
            <success>false</success>
            <error_code>&quot;isv.invalid-parameter&quot;</error_code>
            <error_msg>&quot;参数错误&quot;</error_msg>
        </result>
    </tmall_car_position_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

    返回
    顶部