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

alibaba.tmallgenie.scp.plan.current.po.get (11-同步本周的po单(从W-1周到W+4周))

11-同步本周的po单(从W-1周到W+4周)

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
request_extend_json String 可选 {"a":"b"} 扩展参数

响应参数

名称 类型 示例值 描述
result DataResult 对象 返回对象封装
  • └ result_msg
  • String
  • foo
  • 结果msg
  • └ trace_id
  • String
  • 1111111
  • 请求唯一id
  • └ result_code
  • String
  • foo
  • 结果code
  • data_list
  • IbpPurchaseOrderDto []
  • 对象
  • 返回对象封装
  • └ week_n_o
  • String
  • 2020W12
  • └ production_quantity
  • Number
  • 22
  • 生产实绩数量
  • └ urgent_plan_quantity
  • Number
  • 22
  • 紧急的计划数量
  • └ normal_plan_quantity
  • Number
  • 22
  • 普通的计划数量
  • └ plan_quantity
  • Number
  • 22
  • 计划数量
  • └ materiel_code
  • String
  • 1xx
  • 物料编码
  • └ location_code
  • String
  • 1
  • 地点编码
  • └ extend_json
  • String
  • {"a":"b"}
  • 扩展参数
  • └ tenant
  • String
  • ailab
  • 租户
  • └ key_figure_date
  • Date
  • 2020-09-09 22:22:22
  • 关键日期值

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTmallgenieScpPlanCurrentPoGetRequest req = new AlibabaTmallgenieScpPlanCurrentPoGetRequest();
req.setRequestExtendJson("{\"a\":\"b\"}");
AlibabaTmallgenieScpPlanCurrentPoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_tmallgenie_scp_plan_current_po_get_response>
    <result>
        <result_msg>foo</result_msg>
        <trace_id>1111111</trace_id>
        <result_code>foo</result_code>
        <data_list>
            <ibp_purchase_order_dto>
                <week_n_o>2020W12</week_n_o>
                <production_quantity>22</production_quantity>
                <urgent_plan_quantity>22</urgent_plan_quantity>
                <normal_plan_quantity>22</normal_plan_quantity>
                <plan_quantity>22</plan_quantity>
                <materiel_code>1xx</materiel_code>
                <location_code>1</location_code>
                <extend_json>{&quot;a&quot;:&quot;b&quot;}</extend_json>
                <tenant>ailab</tenant>
                <key_figure_date>2020-09-09 22:22:22</key_figure_date>
            </ibp_purchase_order_dto>
        </data_list>
    </result>
</alibaba_tmallgenie_scp_plan_current_po_get_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

返回
顶部