PR_SUPPLY
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/pr/pr_supply |
Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/pr/pr_supply |
Request data description
Param | KEY | Type | Required | Length | Description | Sample |
---|---|---|---|---|---|---|
mandt | String | 3 | 128 | |||
ips_id | String | Y | 20 | IPS version | IPS23110608 | |
guid | String | 32 | 005056A6D6931EDD8ECB3942D43C40DA | |||
bu | String | Y | 10 | business unit | TNB | |
pr_no | String | Y | 20 | PR number | PR2023092994779 | |
lnv_pn | String | 18 | lenovo part number | SBB1L10500 | ||
plant | String | Y | 20 | plant | WISTRON | |
reserve_qty | Number | Y | 10,3 | reserve quantity | 1.000 | |
ocup_date | String | Y | 8 | occupied date,Format:YYYYMMDD | 20231106 | |
reserve_type | String | Y | 70 | Segment: GA/E-COMM | GA | |
pr_required_date | String | Y | 8 | required date,Format:YYYYMMDD | 20230930 | |
pr_expired_date | String | Y | 8 | End Date,Format:YYYYMMDD | 20231217 | |
togo_rev_qty | Number | Y | 10,3 | TOGOPR reserve quantity,default: 0.000 | 4.000 | |
sys_timestamp | String | 50 | system timestamp,Format:YYYYMMDD HH24:MI:SS | 20231107 10:24:30 | ||
mrtyp | String | Y | 10 | ETA/OH/TBD | ETA | |
odm | String | Y | 20 | COMPAL/WISTRON | WISTRON | |
zline | String | 40 | IPS line | 00150 | ||
order_qty | Number | Y | 10,3 | PR order quantity | 10 | |
pr_peg_qty | Number | Y | 10,3 | PR Peg quantity, default: 0 | 1 | |
pr_failed_qty | Number | 10,3 | PR Peg failed quantity | |||
most_gating_part_1 | String | 80 | most gating part 1 | SB21D20359 | ||
most_gating_part_1_desc | String | 80 | most gating part 1 description | PCBA MB NMD961 JYG70 I7-1280P14C VP D32G | ||
most_gating_part_2 | String | 80 | most gating part 2 | ST51D65956 | ||
most_gating_part_2_desc | String | 80 | most gating part 2 description | LCD_LED_TS 140FN146EKF 14 AG USB CAM 01! | ||
most_gating_part_3 | String | 80 | most gating part 3 | |||
most_gating_part_3_desc | String | 80 | most gating part 3 description | |||
commodity | String | Y | 255 | SBB Type, MTM Type | WLAN | |
res_pn | String | 40 |
Response data description
Param | Type | Required | Description |
---|---|---|---|
code | String | Y | 0:successful, other:failed |
msg | String | Y | message |
Request sample
json
{
"batch_id": "1",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [{
"mandt": "128",
"ips_id": "IPS23110608",
"guid": "005056A6D6931EDD8ECB3942D43C40DA",
"bu": "TNB",
"pr_no": "PR2023092994779",
"lnv_pn": "SBB1L10500",
"plant": "WISTRON",
"reserve_qty": "1.000",
"ocup_date": "20231106",
"reserve_type": "GA",
"pr_required_date": "20230930",
"pr_expired_date": "20231217",
"togo_rev_qty": "4.000",
"sys_timestamp": "20231107 10:24:30",
"mrtyp": "ETA",
"odm": "WISTRON",
"zline": "150",
"order_qty": "10",
"pr_peg_qty": "1",
"pr_failed_qty": "",
"most_gating_part_1": "SB21D20359",
"most_gating_part_1_desc": "PCBA MB NMD961 JYG70 I7-1280P14C VP D32G",
"most_gating_part_2": "ST51D65956",
"most_gating_part_2_desc": "LCD_LED_TS 140FN146EKF 14 AG USB CAM 01!",
"most_gating_part_3": "",
"most_gating_part_3_desc": "",
"commodity": "WLAN",
"res_pn": ""
}]
}
Successful response sample
json
{
"code": "0",
"msg": "request success"
}
Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "COMPAL",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}