文档中心 > API类目 > 淘天物流API

taobao.logistics.wms.solution.report (包装方案回传)

包装方案回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
wms_packing_solution_request WmsPackingSolutionRequest 必须 包装方案参数
  • └ item_id
  • String
  • 必须
  • 234234
  • 货品ID
  • solution_details
  • WmsPackingSolutionDetailDTO []
  • 可选
  • 包装方案明细
  • 包装方案明细
  • └ dimension_id
  • String
  • 必须
  • 23424
  • 包装方案维度ID
  • └ scene_code
  • String
  • 必须
  • 闪购-通用
  • 场景编码
  • └ wave_code
  • String
  • 必须
  • 1
  • 波次
  • └ service_ability
  • String
  • 必须
  • 22010550
  • 服务能力
  • └ extend_props
  • String
  • 可选
  • {"key":"value"}
  • 扩展属性
  • └ solution_code
  • String
  • 必须
  • 234234
  • 解决方案编码

响应参数

名称 类型 示例值 描述
result ResultWrapper 返回值
  • └ success
  • Boolean
  • true
  • 系统成功是失败
  • └ biz_error_msg
  • String
  • 系统错误
  • 错误原因描述
  • └ biz_error_code
  • String
  • SYSTEM_ERROR
  • 错误原因编码
  • └ retry
  • Boolean
  • false
  • 是否需要重试
  • data
  • WmsPackingSolutionDetailResultDTO []
  • 明细
  • └ success
  • Boolean
  • true
  • 明细成功失败
  • └ biz_error_msg
  • String
  • 无编码
  • 错误原因描述
  • └ biz_error_code
  • String
  • NO_CODE
  • 错误原因编码
  • └ dimension_id
  • String
  • 23456
  • 包装方案维度ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
LogisticsWmsSolutionReportRequest req = new LogisticsWmsSolutionReportRequest();
LogisticsWmsSolutionReportRequest.WmsPackingSolutionRequest obj1 = new LogisticsWmsSolutionReportRequest.WmsPackingSolutionRequest();
obj1.setItemId("234234");
List<LogisticsWmsSolutionReportRequest.WmsPackingSolutionDetailDTO> list3 = new ArrayList<LogisticsWmsSolutionReportRequest.WmsPackingSolutionDetailDTO>();
LogisticsWmsSolutionReportRequest.WmsPackingSolutionDetailDTO obj4 = new LogisticsWmsSolutionReportRequest.WmsPackingSolutionDetailDTO();
list3.add(obj4);
obj4.setDimensionId("23424");
obj4.setSceneCode("闪购-通用");
obj4.setWaveCode("1");
obj4.setServiceAbility("22010550");
obj4.setExtendProps("{\"key\":\"value\"}");
obj4.setSolutionCode("234234");
obj1.setSolutionDetails(list3);
req.setWmsPackingSolutionRequest(obj1);
LogisticsWmsSolutionReportResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<logistics_wms_solution_report_response>
    <result>
        <success>true</success>
        <biz_error_msg>系统错误</biz_error_msg>
        <biz_error_code>SYSTEM_ERROR</biz_error_code>
        <retry>false</retry>
        <data>
            <wms_packing_solution_detail_result_d_t_o>
                <success>true</success>
                <biz_error_msg>无编码</biz_error_msg>
                <biz_error_code>NO_CODE</biz_error_code>
                <dimension_id>23456</dimension_id>
            </wms_packing_solution_detail_result_d_t_o>
        </data>
    </result>
</logistics_wms_solution_report_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

返回
顶部