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

alibaba.tmallgenie.scp.plan.current.rawpo.get (二级物料-PO数据同步)

二级物料-PO数据同步(WO-W[TL])

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_request AbstractRequest 可选 系统自动生成
  • └ 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 []
  • 对象
  • 返回对象封装
  • └ plan_quantity
  • Number
  • 22
  • 计划数量
  • └ materiel_code
  • String
  • 1xx
  • 二级物料-物料编码
  • └ location_code
  • String
  • 1
  • 二级物料-供应商loc
  • └ extend_json
  • String
  • {"a":"b"}
  • 扩展参数
  • └ tenant
  • String
  • ailab
  • 租户
  • └ key_figure_date
  • Date
  • 2020-09-09 22:22:22
  • 关键日期值
  • └ location_code_to
  • String
  • xxxx
  • 二级物料-分仓目的仓code

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_tmallgenie_scp_plan_current_rawpo_get_response>
    <result>
        <result_msg>foo</result_msg>
        <trace_id>1111111</trace_id>
        <result_code>foo</result_code>
        <data_list>
            <ibp_purchase_order_dto>
                <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>
                <location_code_to>xxxx</location_code_to>
            </ibp_purchase_order_dto>
        </data_list>
    </result>
</alibaba_tmallgenie_scp_plan_current_rawpo_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

返回
顶部