Tier1 T2 Data
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/t1/t2_data |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/t1/t2_data |
- FTP
Environment | Partner directory | Lenovo directory | File name |
---|---|---|---|
Test | /Planning/SCC/{appName}/t1/t2_data/ | /Planning/SCC/{appName}/t1/t2_data/feedback/ | t2_data_{crud}_{yyyyMMddHHmmss}_ |
Prod | /Planning/SCC/{appName}/t1/t2_data/ | /Planning/SCC/{appName}/t1/t2_data/feedback/ | t2_data_{crud}_{yyyyMMddHHmmss}_ |
Sample :/Planning/SCC/LCFC/t1/t2_data/t2_data_update_20220928123000_001
Frequency | Time | Transfer mode | key |
---|---|---|---|
Daily ,Weekly Monday | 00:10:00 | API,FTP,UI(upload) | vendor_code + t2_vendor_pn + alt_group_name + version |
Request data description
Param | Key | Type | Required | Length | Description | Example |
---|---|---|---|---|---|---|
uid | String | 32 | unique id | |||
bu | String | Y | 50 | ThinkNB,IdeaNB,ThinkOption,ThinkDT,IdeaOption,IdeaDT,WS,Smart Device,ISG,Mobile Phone,Mobile Tablet | Mobile Phone | |
site | String | Y | 50 | LSSC | ||
vendor_code | Y | String | Y | 30 | V000001 | |
vendor_name | String | option | 500 | ABCD | ||
vendor_site | Y | String | Y | 20 | wuxi plant | |
t1_lenovo_pn | String | Y | 1000 | SV11K12345 | ||
t1_vendor_pn | String | Y | 1000 | 201-1N33-0LH | ||
t2_lenovo_pn | String | option | 200 | SG21102356 | ||
t2_vendor_pn | Y | String | Y | 200 | 202-A111-0LV | |
alt_group_name | Y | String | Y | 100 | GLS01 | |
original_mfg_pn | String | option | 200 | T2 origin manufacturing part no | PL00002 | |
mfg_pn_desc | String | option | 200 | LOGIC IC | ||
gr_qty | String | Y | 13,3 | 500 | ||
gr_date | Y | String | Y | if gr = N/A then N/A | 20221205-20230206 | |
inventory_qty | String | Y | 13,3 | 1000 | ||
inventory_date | String | Y | 20230206 | |||
bps_qty | String | Y | 13,3 | 0 | ||
bps_date | String | Y | 20230206 | |||
version | Y | String | Y | 8 | 20211012 | 20230201 |
measure_list | List | option | measure collection | |||
owner | String | option | 50 |
measure_list
measure | Y | String | Y | 20 | Demand、Supply、ETA | Demand |
---|---|---|---|---|---|---|
flag | Y | String | Y | 20 | enum:Monthly、Weekly、Daily,if Flag = Monthly,need to validate the day field value is month first day,if flag = Weekly,day should be monday | Weekly |
day | Y | Date | Y | 日期范围 52 周,By Daily | 2022-02-22 | |
day_qty | Number | Y | 13,3 | 100 |
Response data description
Param | Type | Required | Description |
---|---|---|---|
code | String | Y | 0:successful, other:failed |
msg | String | Y | message |
Request sample
json
{
"batch_id": "100058",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"vendor_code": "123",
"t2_vendor_pn": "123",
"alt_group_name": "122",
"site": "S001",
"bu": "Think NB",
"vendor_site": "S001",
"t1_vendor_pn": "12345",
"vendor_name": "000000",
"original_mfg_pn": "3232",
"t1_lenovo_pn": "12311",
"t2_lenovo_pn": "1321",
"mfg_pn_desc": "desc",
"bps_date": "N/A",
"bps_qty": "N/A",
"gr_date": "N/A",
"gr_qty": "N/A",
"inventory_date": "N/A",
"inventory_qty": "N/A",
"measure_list": [
{
"measure": "Demand",
"flag": "Weekly",
"day": "2022-11-12",
"day_qty": 13
}
]
}
]
}
Successful response sample
json
{
"code": "0",
"msg": "request success"
}
Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"day": "xxxxxxxxxxxx",
...
},
"verify": [{
"type": "value length exceed",
"fields": "day"
}]
}]
}