Yield Rate 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/yield_rate |
| Prod | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/t1/yield_rate |
Request method
| Frequency | Time | Remark |
|---|---|---|
| Daily | 00:00 | Daily - full amount |
Request data description
| Field | Key | Type | Required | Length | Description | Sample |
|---|---|---|---|---|---|---|
| vendor_code | Y | String | Y | 40 | ||
| odm | Y | String | Y | 100 | ||
| odm_item | Y | String | Y | 50 | ||
| lenovo_item | Y | String | Y | 50 | ||
| family | String | 100 | ||||
| yield_rate | Number | Y | 2,2 | Percentage, keep two decimal places | 0.00 | |
| effective_start_date | Y | Date | Y | Fix value if full cycle, in String format:yyyy-MM-dd | 1970-01-01 | |
| effective_end_date | Y | Date | Y | Fix value if full cycle, in String format:yyyy-MM-dd | 9999-12-31 | |
| create_date | Date | Y | create date, in String format:yyyy-MM-dd | 2024-05-05 | ||
| modify_date | Date | Y | modify date, in String format:yyyy-MM-dd | 2024-05-30 | ||
| owner | Y | String | Y | 20 | ||
| version | Y | String | Y | 14 | version, timestamp | 20220801090123 |
| comment1 | String | 100 | Reserve fields for later use and can now be emptied | |||
| comment2 | String | 100 | Reserve fields for later use and can now be emptied |
Response data description
| Field | Type | Required | Description |
|---|---|---|---|
| code | String | Y | 0:successful, others: failed |
| msg | String | Y | success or summary error message |
| result | List | Y | indicates error data |
Request sample
json
{
"batch_id": "1000001",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data":[
{
"vendor_code": "****",
"odm": "LCFC",
"odm_item": "****",
"lenovo_item": "****",
"family": "EXCESS",
"yield_rate": 0.00,
"effective_start_date": "1970-01-01",
"effective_end_date": "9999-12-31",
"create_date": "2024-05-05",
"modify_date": "2024-05-30",
"owner": "***",
"version": "20240821091523",
"comment1": "",
"comment2": ""
}
]
}Successful response sample
json
{
"code":"0",
"msg":"request success"
}Failed response sample
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"vendor_code": "****",
...
},
"verify": [{
"type": "value length exceed",
"fields": "family"
}]
}]
}