文档中心 > API类目 > 天猫精灵供应链网关API

alibaba.tmallgenie.scp.plan.mouthfour.upload (21-M+4PR 回传接口接口)

M+4 PR 回传接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
month_four_pr_request MonthFourPrRequest 可选 请求参数
  • month_four_pr_param_d_t_o_s
  • MonthFourPrParamDto []
  • 可选
  • 请求参数
  • └ key_figure_date
  • Date
  • 可选
  • 2020-09-09 22:22:22
  • 关键值日期
  • └ pr_qty
  • String
  • 可选
  • 21
  • PR数量
  • └ production_line
  • String
  • 可选
  • 1
  • 产品线
  • └ extend_json
  • String
  • 可选
  • 扩展参数
  • 扩展参数
  • └ tenant
  • String
  • 可选
  • ailab
  • 租户
  • └ request_extend_json
  • String
  • 可选
  • {"a":"a","b","b"}
  • 扩展参数

响应参数

名称 类型 示例值 描述
result_msg String 成功 结果msg
trace_id String 222222222 请求唯一ID
result_code String 00000000 结果code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallgenieScpPlanMouthfourUploadRequest req = new AlibabaTmallgenieScpPlanMouthfourUploadRequest();
AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrRequest obj1 = new AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrRequest();
List<AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrParamDto> list3 = new ArrayList<AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrParamDto>();
AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrParamDto obj4 = new AlibabaTmallgenieScpPlanMouthfourUploadRequest.MonthFourPrParamDto();
list3.add(obj4);
obj4.setKeyFigureDate(StringUtils.parseDateTime("2020-09-09 22:22:22"));
obj4.setPrQty("21");
obj4.setProductionLine("1");
obj4.setExtendJson("扩展参数");
obj4.setTenant("ailab");
obj1.setMonthFourPrParamDTOS(list3);
obj1.setRequestExtendJson("{\"a\":\"a\",\"b\",\"b\"}");
req.setMonthFourPrRequest(obj1);
AlibabaTmallgenieScpPlanMouthfourUploadResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tmallgenie_scp_plan_mouthfour_upload_response>
    <result_msg>成功</result_msg>
    <trace_id>222222222</trace_id>
    <result_code>00000000</result_code>
</alibaba_tmallgenie_scp_plan_mouthfour_upload_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

返回
顶部