文档中心 > API类目 > 天猫精灵供应链数字工厂

aliyun.gsc.shipdistribute.plan.query (分仓计划查询)

分仓计划查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
ship_info_param ShipInfoParam 必须 入参数据
  • └ ship_instruction_no
  • String
  • 可选
  • DP1005076129
  • 分仓计划单号
  • └ create_time_end
  • Number
  • 可选
  • 1607154340000
  • 计划开始时间
  • └ create_time_start
  • Number
  • 可选
  • 1607154340000
  • 计划结束时间

响应参数

名称 类型 示例值 描述
result SncCommonResult 返回值 返回业务数据
  • └ response_code
  • String
  • 200
  • 状态码
  • data
  • ShipInfoResult []
  • 返回值
  • 返回值
  • details
  • ShipInfoDetail []
  • 分仓详情
  • 分仓详情
  • └ source_org
  • String
  • TLXXX
  • 来源组织
  • └ source_org_type
  • String
  • 0
  • 来源组织类型
  • └ target_address
  • String
  • 浙江省杭州市余杭区Address
  • 目标地址
  • └ target_sub_org
  • String
  • TLXXX
  • 目标子组织
  • └ target_org
  • String
  • BP000531
  • 目标组织
  • └ target_org_type
  • String
  • 2
  • 目标组织类型
  • └ quantity
  • String
  • 2
  • 数量
  • └ product_name
  • String
  • 物料名称A
  • 物料名称
  • └ product_code
  • String
  • 1AXXXXX
  • 物料编码
  • └ ship_instruction_line_no
  • String
  • DP1005076129
  • 分仓计划行号
  • └ source_sub_org
  • String
  • TL101
  • 来源子组织
  • └ expected_arrival_time
  • Date
  • 2020-10-27 17:58:00
  • 期望发货时间
  • └ expected_departure_time
  • Date
  • 2020-10-27 17:58:00
  • 期望到货时间
  • └ total_line_number
  • Number
  • 2
  • 总行数
  • └ ship_instruction_no
  • String
  • 123123
  • 分仓计划单号
  • └ vendor_code
  • String
  • vendor001
  • 供应商编码
  • └ vendor_name
  • String
  • 供应商名称A
  • 供应商名称
  • └ error_message
  • String
  • no
  • 错误信息
  • └ message
  • String
  • 成功
  • 信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliyunGscShipdistributePlanQueryRequest req = new AliyunGscShipdistributePlanQueryRequest();
AliyunGscShipdistributePlanQueryRequest.ShipInfoParam obj1 = new AliyunGscShipdistributePlanQueryRequest.ShipInfoParam();
obj1.setShipInstructionNo("DP1005076129");
obj1.setCreateTimeEnd(1607154340000L);
obj1.setCreateTimeStart(1607154340000L);
req.setShipInfoParam(obj1);
AliyunGscShipdistributePlanQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliyun_gsc_shipdistribute_plan_query_response>
    <result>
        <response_code>200</response_code>
        <data>
            <ship_info_result>
                <details>
                    <ship_info_detail>
                        <source_org>TLXXX</source_org>
                        <source_org_type>0</source_org_type>
                        <target_address>浙江省杭州市余杭区Address</target_address>
                        <target_sub_org>TLXXX</target_sub_org>
                        <target_org>BP000531</target_org>
                        <target_org_type>2</target_org_type>
                        <quantity>2</quantity>
                        <product_name>物料名称A</product_name>
                        <product_code>1AXXXXX</product_code>
                        <ship_instruction_line_no>DP1005076129</ship_instruction_line_no>
                        <source_sub_org>TL101</source_sub_org>
                        <expected_arrival_time>2020-10-27 17:58:00</expected_arrival_time>
                        <expected_departure_time>2020-10-27 17:58:00</expected_departure_time>
                    </ship_info_detail>
                </details>
                <total_line_number>2</total_line_number>
                <ship_instruction_no>123123</ship_instruction_no>
                <vendor_code>vendor001</vendor_code>
                <vendor_name>供应商名称A</vendor_name>
            </ship_info_result>
        </data>
        <error_message>no</error_message>
        <message>成功</message>
    </result>
</aliyun_gsc_shipdistribute_plan_query_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

返回
顶部