po
This interface is applicable for data integration API, read Api Access Process first
Request address
- API
| Environment | URL |
|---|---|
| Test | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/tn/po |
| Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/tn/po |
- FTP
| Environment | Partner directory | Lenovo directory | File name |
|---|---|---|---|
| Test | /Planning/SCC/{appName}/tn/po/ | /Planning/SCC/{appName}/tn/po/feedback/ | po_{crud}_{yyyyMMddHHmmss}_ |
| Prod | /Planning/SCC/{appName}/tn/po/ | /Planning/SCC/{appName}/tn/po/feedback/ | po_{crud}_{yyyyMMddHHmmss}_ |
Request data description
| Param | key | Type | Required | Length | Description |
|---|---|---|---|---|---|
| uid | String | 32 | Unique id | ||
| bu | Y | String | Y | 50 | |
| vendor_code | Y | String | Y | 30 | |
| vendor_name | String | Y | 60 | ||
| material_type | String | Y | 10 | BS,DB,DS | |
| order_type | String | 20 | |||
| vendor_pn | Y | String | Y | 200 | |
| vendor_pn_desc | String | Y | 500 | ||
| t1_vendor_pn | String | Y | 200 | ||
| uom | Number | 13,3 | |||
| lead_time | String | Y | 50 | ||
| purchase_type | String | 20 | |||
| action | String | 20 | |||
| order_status | String | 20 | |||
| scheduled_receipt_order_type | String | 20 | |||
| po_no | Y | String | Y | 20 | |
| po_line | Y | String | Y | 20 | |
| order_date | String | Y | 20 | ||
| forecast_qty | Number | Y | 10 | ||
| total_qty | Number | Y | 13,3 | ||
| open_qty | Number | Y | 10 | ||
| need_date | Date | Y | DATE(yyyy-mm-dd) | ||
| due_date | Date | Y | DATE(yyyy-mm-dd) | ||
| need_ship_date | Date | Y | DATE(yyyy-mm-dd) | ||
| confirm_ship_date | Date | Y | DATE(yyyy-mm-dd) | ||
| buyer_name | String | Y | 20 | ||
| planner_name | String | 20 | |||
| qty_to_reduce_inv_uom | Number | 13,3 | |||
| need_qty_inv_uom | Number | 13,3 | |||
| incoterm | String | 20 | |||
| incoterm_destination | String | 50 | |||
| storage_location | String | Y | 20 | ||
| version | Y | String | Y | 8 | 20211012 |
Response data description
| Param | Type | Required | Description |
|---|---|---|---|
| code | String | Y | 0:successful, other:failed |
| msg | String | Y | message |
Request sample
json
{
}Successful response sample
json
{
"code":"0",
"msg":"request success"
}Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "LCFC",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}