文档中心 > API类目 > 海南离岛免税api

alibaba.dutyfree.procurement.instock (采购调拨入库成本信息同步)

离岛补购调拨单对应采购批次与采购成本信息同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
procurements ProcurementInfo [] 可选
  • 最大列表长度:999
  • 采购成本信息
    • └ supplier_name
    • String
    • 可选
    • xxx
    • 供应商名称
    • └ brand_name
    • String
    • 可选
    • 苹果
    • 品牌名称
    • └ supplier_id
    • String
    • 可选
    • 123
    • 供应商id
    • └ in_warehouse_date
    • Number
    • 可选
    • 111122222
    • 入库时间戳,精确到秒
    • └ tertiary_category
    • String
    • 可选
    • 3
    • 三级类目
    • └ purchase_price
    • BigDecimal
    • 可选
    • 5.12
    • 进货不含税进价金额
    • └ brand_en_name
    • String
    • 可选
    • apple
    • 品牌英文名
    • └ purchase_price_with_tax
    • BigDecimal
    • 可选
    • 5.12
    • 进货含税进价金额
    • └ secondary_category
    • String
    • 可选
    • 2
    • 二级类目
    • └ item_id
    • String
    • 可选
    • GP10381
    • 货品id
    • └ iszp
    • String
    • 可选
    • Y
    • 是否赠品
    • └ primary_category
    • String
    • 可选
    • 1
    • 一级类目
    • └ brand_id
    • String
    • 可选
    • 123
    • 品牌id
    • └ unit_qty
    • Number
    • 可选
    • 100
    • 批次数量
    • └ currency
    • String
    • 可选
    • CNY
    • 货币单位
    • └ out_batch_code
    • String
    • 可选
    • 12345
    • 采购批次号
    • └ dst_warehouse
    • String
    • 可选
    • abcd
    • 起始仓code
    • └ dep_warehouse
    • String
    • 可选
    • xyz
    • 目的仓code

    响应参数

    名称 类型 示例值 描述
    result Boolean true 处理结果

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaDutyfreeProcurementInstockRequest req = new AlibabaDutyfreeProcurementInstockRequest();
    List<AlibabaDutyfreeProcurementInstockRequest.ProcurementInfo> list2 = new ArrayList<AlibabaDutyfreeProcurementInstockRequest.ProcurementInfo>();
    AlibabaDutyfreeProcurementInstockRequest.ProcurementInfo obj3 = new AlibabaDutyfreeProcurementInstockRequest.ProcurementInfo();
    list2.add(obj3);
    obj3.setSupplierName("xxx");
    obj3.setBrandName("苹果");
    obj3.setSupplierId("123");
    obj3.setInWarehouseDate(111122222L);
    obj3.setTertiaryCategory("3");
    obj3.setPurchasePrice("5.12");
    obj3.setBrandEnName("apple");
    obj3.setPurchasePriceWithTax("5.12");
    obj3.setSecondaryCategory("2");
    obj3.setItemId("GP10381");
    obj3.setIszp("Y");
    obj3.setPrimaryCategory("1");
    obj3.setBrandId("123");
    obj3.setUnitQty(100L);
    obj3.setCurrency("CNY");
    obj3.setOutBatchCode("12345");
    obj3.setDstWarehouse("abcd");
    obj3.setDepWarehouse("xyz");
    req.setProcurements(list2);
    AlibabaDutyfreeProcurementInstockResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_dutyfree_procurement_instock_response>
        <result>true</result>
    </alibaba_dutyfree_procurement_instock_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

    返回
    顶部