文档中心 > API类目 > AIS基石API

alibaba.ais.component.directiveline.get (根据指令获取部件采购指令行信息)

整机供应商根据下单指令头号和指令头下发时间获取指令头对应的指令行详细信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
directive_number String 可选 DT0000000001 指令号(全局唯一),DT开头,后面10位数字

响应参数

名称 类型 示例值 描述
result DirectiveLineResDto result
  • └ create_time
  • String
  • 2017-11-11 00:00:00
  • 指令创建日期,格式 “yy-MM-dd HH:mm:ss”
  • └ purchase_way
  • String
  • 1
  • 采购方式 1:B&S;2:AVAP
  • └ directive_number
  • String
  • DT0000000001
  • 指令号(全局唯一),POD开头,后面10位数字
  • └ err_msg
  • String
  • 某某错误描述
  • 异常文案(失败时必填)
  • └ err_code
  • String
  • 00000000
  • 调用返回码,00000000表示成功(失败时必填)
  • └ brand
  • String
  • intel
  • 采购品牌 Intel、Samsung
  • └ is_success
  • Boolean
  • true
  • true:调用成功;false:调用失败
  • directive_line_list
  • DirectiveLinesDto []
  • directiveLineList
  • 指令行JSON数组
  • └ expected_time_departure
  • String
  • 2017-01-20 00:00:00
  • 期望发货日(ETD),格式"yy-MM-dd HH:mm:ss"
  • └ spec
  • String
  • 5554
  • 规格
  • └ unit
  • String
  • PCS
  • 度量单位
  • └ directive_line_number
  • String
  • 2
  • 指令行号,从1开始递增
  • └ expected_time_order
  • String
  • 2017-01-20 00:00:00
  • 期望下单日,格式"yy-MM-dd HH:mm:ss"
  • └ ali_po
  • String
  • PO12345678
  • 阿里PO,PO开头,8位数字
  • └ quantity
  • Number
  • 10000
  • 数量
  • └ component_category
  • String
  • SSD
  • 部件类别
  • └ mpn
  • String
  • IXX1234567
  • mpn
  • └ ali_po_line
  • String
  • 1
  • 阿里PO行号,从1开始递增
  • └ expected_time_arrival
  • String
  • 2017-01-20 00:00:00
  • 期望到货日(ETA),格式"yy-MM-dd HH:mm:ss"
  • └ firmware
  • String
  • v1.5
  • firmware版本
  • └ source_type
  • String
  • buy_back
  • 回购
  • └ directive_line_ext
  • String
  • {"key": "value"}
  • 采购指令拓展行属性
  • └ factory_code
  • String
  • Inspur101
  • 工厂编码
  • └ directive_ext
  • String
  • {"sourceInventory":"ALI_CMI01"}
  • 采购指令拓展属性

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAisComponentDirectivelineGetRequest req = new AlibabaAisComponentDirectivelineGetRequest();
req.setDirectiveNumber("DT0000000001");
AlibabaAisComponentDirectivelineGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_ais_component_directiveline_get_response>
    <result>
        <create_time>2017-11-11 00:00:00</create_time>
        <purchase_way>1</purchase_way>
        <directive_number>DT0000000001</directive_number>
        <err_msg>某某错误描述</err_msg>
        <err_code>00000000</err_code>
        <brand>intel</brand>
        <is_success>true</is_success>
        <directive_line_list>
            <directive_lines_dto>
                <expected_time_departure>2017-01-20 00:00:00</expected_time_departure>
                <spec>5554</spec>
                <unit>PCS</unit>
                <directive_line_number>2</directive_line_number>
                <expected_time_order>2017-01-20 00:00:00</expected_time_order>
                <ali_po>PO12345678</ali_po>
                <quantity>10000</quantity>
                <component_category>SSD</component_category>
                <mpn>IXX1234567</mpn>
                <ali_po_line>1</ali_po_line>
                <expected_time_arrival>2017-01-20 00:00:00</expected_time_arrival>
                <firmware>v1.5</firmware>
                <source_type>buy_back</source_type>
                <directive_line_ext>{&quot;key&quot;: &quot;value&quot;}</directive_line_ext>
            </directive_lines_dto>
        </directive_line_list>
        <factory_code>Inspur101</factory_code>
        <directive_ext>{&quot;sourceInventory&quot;:&quot;ALI_CMI01&quot;}</directive_ext>
    </result>
</alibaba_ais_component_directiveline_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

返回
顶部