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

alibaba.tmallgenie.scp.plan.rawpo.gap.return (二级物料-LT内的POGAP数据回传)

二级物料-LT内的POGAP数据回传

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
raw_pogap_request RawPurchaseOrderGapRequest 可选 请求对象
  • raw_purchase_order_gap_d_t_os
  • RawPurchaseOrderGapDto []
  • 可选
  • 请求对象列表
  • └ extend_json
  • String
  • 可选
  • {"a":"b"}
  • 扩展参数
  • └ tenant
  • String
  • 可选
  • ailab
  • 租户
  • └ key_figure_date
  • Date
  • 可选
  • 2020-02-02 00:00:00
  • 关键日期值
  • └ materiel_code
  • String
  • 可选
  • xxx
  • 二级物料-物料编码
  • └ location_code_to
  • String
  • 可选
  • xxx
  • 二级物料-分仓目的地code
  • └ location_code
  • String
  • 可选
  • xxx
  • 二级物料-供应商code
  • └ raw_po_gap_qty
  • Number
  • 可选
  • 3030
  • 二级物料PO GAP数
  • └ request_extend_json
  • String
  • 可选
  • {"a":"b"}
  • 扩展参数

响应参数

名称 类型 示例值 描述
result_msg String 成功 返回描述
trace_id String aaaaaaaaa 请求唯一ID
result_code String 00000000 返回码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallgenieScpPlanRawpoGapReturnRequest req = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequest obj1 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapRequest();
List<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto> list3 = new ArrayList<AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto>();
AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto obj4 = new AlibabaTmallgenieScpPlanRawpoGapReturnRequest.RawPurchaseOrderGapDto();
list3.add(obj4);
obj4.setExtendJson("{\"a\":\"b\"}");
obj4.setTenant("ailab");
obj4.setKeyFigureDate(StringUtils.parseDateTime("2020-02-02 00:00:00"));
obj4.setMaterielCode("xxx");
obj4.setLocationCodeTo("xxx");
obj4.setLocationCode("xxx");
obj4.setRawPoGapQty(3030L);
obj1.setRawPurchaseOrderGapDTOs(list3);
obj1.setRequestExtendJson("{\"a\":\"b\"}");
req.setRawPogapRequest(obj1);
AlibabaTmallgenieScpPlanRawpoGapReturnResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tmallgenie_scp_plan_rawpo_gap_return_response>
    <result_msg>成功</result_msg>
    <trace_id>aaaaaaaaa</trace_id>
    <result_code>00000000</result_code>
</alibaba_tmallgenie_scp_plan_rawpo_gap_return_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

返回
顶部