OPEN PO 相关接口
对接前请了解 API 接入流程
查询 PO
- 请求地址
| 环境 | URL |
|---|---|
| 测试 | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/query/purchase/open_po |
| 正式 | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/query/purchase/open_po |
- 请求参数
| 参数 | 类型 | 描述 | 示例 |
|---|---|---|---|
| pageNo | Integer | 页码 | 1 |
| pageSize | Integer | 每页数量 | 10 |
| criteria | Map | 条件集合 | 见请求示例 |
| vendor | String | 供应商code | 0001000223 |
| plant | string | 工厂 | 9270 |
| order_type | string | order type | NC |
- 响应参数
| 参数 | 类型 | 长度 | 描述 | 示例值 |
|---|---|---|---|---|
| code | String | 10 | 回执code | "0" |
| msg | String | 10 | 回执信息 | "ok"/"error" |
| result | Object | 回执示例 | 见响应示例 | |
| total | Integer | 总条数 | 见响应示例 | |
| page_num | Integer | 当前页码 | 见响应示例 | |
| page_size | Integer | 每页条数 | 见响应示例 | |
| total_page | Integer | 总页数 | 见响应示例 | |
| data | List | 数据集合 | 见响应示例 | |
| po | String | 见响应示例 | ||
| poLine | String | 见响应示例 | ||
| lenovoPn | String | 见响应示例 | ||
| vendorCode | String | 见响应示例 | ||
| plant | String | 见响应示例 | ||
| poQty | Integer | 见响应示例 | ||
| openQty | Integer | 见响应示例 |
- 请求示例
json
{
"pageNo": 1,
"pageSize": 10,
"criteria": {
"vendor": "0001000223",
"plant": "9270",
"order_type": "NC"
}
}- 响应示例
json
{
"code": "0",
"msg": "ok",
"result": {
"total": 1000000,
"page_num": 1,
"page_size": 10,
"total_page": 2,
"data": [
{
"plant": "*****",
"poQty": 0,
"openQty": 1433,
"poLine": "00010",
"lenovoPn": "*****",
"po": "*****",
"vendorCode": "*****"
},
{
"plant": "*****",
"poQty": 0,
"openQty": 1433,
"poLine": "00010",
"lenovoPn": "*****",
"po": "*****",
"vendorCode": "*****"
}
]
}
}- 异常示例
json
{
"code": "-1",
"msg": "error"
}- 业务错误码
| 错误码 | 错误描述 | 解决方案 |
|---|---|---|
| -1 | 回执code | 请根据result回执修改具体字段的值 |
| 500 | 接口系统错误 | 请提供具体错误报文以及触发时间给IT |
