注意:以下文档只适用于TOP接口,请谨慎使用!

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

tmall.hk.customs.goods.register.sync (天猫国际海外直购货品备案数据同步)

天猫国际海外直购货品备案数据同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
batch_direct_purse_goods_register_dto BatchDirectPurseGoodsRegisterDTO 必须 批量备案同步的请求体
  • direct_purse_goods_register_d_t_o_list
  • DirectPurseGoodsRegisterDTO []
  • 必须
  • 参见子结构字段
  • 批量备案同步的货品备案参数
  • └ hscode
  • String
  • 必须
  • 3303000020
  • BC备案是hscode,CC备案是个人行邮税号
  • └ second_quantity
  • String
  • 可选
  • 1
  • 非必填,BC是第二数量,CC是行邮计税数量
  • └ product_country_code
  • String
  • 必须
  • 103
  • 原产国,3位数字代码,参考http://changchun.customs.gov.cn/customs/302249/zfxxgk/2799825/302274/tjfwzn/2363290/index.html
  • └ sc_item_id
  • Number
  • 必须
  • 111111
  • 货品id
  • └ product_country_name
  • String
  • 必须
  • 孟加拉国
  • 原厂国名称,参考http://changchun.customs.gov.cn/customs/302249/zfxxgk/2799825/302274/tjfwzn/2363290/index.html
  • └ electron_port
  • String
  • 可选
  • GZ,WH.......
  • 电子口岸
  • └ first_quantity
  • String
  • 必须
  • 1
  • 必填,BC是第一数量,CC是行邮申报数量
  • └ feature
  • String
  • 可选
  • {"key":"value"}
  • 扩展结构, String-->String, 暂时没用
  • └ store_name
  • String
  • 可选
  • 仓库名称
  • 仓库名称, 仓库和口岸必须填一个
  • └ first_unit
  • String
  • 必须
  • 035
  • 必填,BC是第一单位, CC是行邮申报单位
  • └ second_unit
  • String
  • 可选
  • 011
  • 非必填,BC是第二单位,CC是行邮计税单位
  • └ biz_mode
  • Number
  • 必须
  • 1
  • 业务模式:进口-保税:1, 进口-非保:2, 个人行邮:3, 进口-直邮:4
  • └ store_code
  • String
  • 可选
  • storeCode
  • 仓code, 仓库和口岸必须填一个

响应参数

名称 类型 示例值 描述
is_success Boolean true 是否成功
response_msg String 不合法入参 错误原因
response_code Boolean INVALID_PARAM 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallHkCustomsGoodsRegisterSyncRequest req = new TmallHkCustomsGoodsRegisterSyncRequest();
TmallHkCustomsGoodsRegisterSyncRequest.BatchDirectPurseGoodsRegisterDTO obj1 = new TmallHkCustomsGoodsRegisterSyncRequest.BatchDirectPurseGoodsRegisterDTO();
List<TmallHkCustomsGoodsRegisterSyncRequest.DirectPurseGoodsRegisterDTO> list3 = new ArrayList<TmallHkCustomsGoodsRegisterSyncRequest.DirectPurseGoodsRegisterDTO>();
TmallHkCustomsGoodsRegisterSyncRequest.DirectPurseGoodsRegisterDTO obj4 = new TmallHkCustomsGoodsRegisterSyncRequest.DirectPurseGoodsRegisterDTO();
list3.add(obj4);
obj4.setHscode("3303000020");
obj4.setSecondQuantity("1");
obj4.setProductCountryCode("103");
obj4.setScItemId(111111L);
obj4.setProductCountryName("孟加拉国");
obj4.setElectronPort("GZ,WH.......");
obj4.setFirstQuantity("1");
obj4.setFeature("{\"key\":\"value\"}");
obj4.setStoreName("仓库名称");
obj4.setFirstUnit("035");
obj4.setSecondUnit("011");
obj4.setBizMode(1L);
obj4.setStoreCode("storeCode");
obj1.setDirectPurseGoodsRegisterDTOList(list3);
req.setBatchDirectPurseGoodsRegisterDto(obj1);
TmallHkCustomsGoodsRegisterSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_hk_customs_goods_register_sync_response>
    <is_success>true</is_success>
    <response_msg>不合法入参</response_msg>
    <response_code>INVALID_PARAM</response_code>
</tmall_hk_customs_goods_register_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

返回
顶部