文档中心 > API类目 > 魅力惠API

tmall.ynap.po.get (支持根据后端货品id查询PO号)

NAP的HardLuxury走直发模式,需要根据glscode查询对应PO号

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sc_item_id Number 必须 594634271052 后端货品ID
biz_type Number 必须 10000 帐套

响应参数

名称 类型 示例值 描述
result MlhBaseResultDto 结果对象
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ modules
  • String []
  • ["PO00001", "PO00002"]
  • 具体的数据
  • └ error_code
  • String
  • 404
  • 错误code
  • └ module_list
  • String []
  • []
  • 列表型数据
  • └ error_msg
  • String
  • 错误信息
  • 错误信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
TmallYnapPoGetRequest req = new TmallYnapPoGetRequest();
req.setScItemId(594634271052L);
req.setBizType(10000L);
TmallYnapPoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<tmall_ynap_po_get_response>
    <result>
        <success>true</success>
        <modules>
            <string>[&quot;PO00001&quot;</string>
            <string>&quot;PO00002&quot;]</string>
        </modules>
        <error_code>404</error_code>
        <module_list>
            <string>[]</string>
        </module_list>
        <error_msg>错误信息</error_msg>
    </result>
</tmall_ynap_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

返回
顶部