Master data to ODM
TIP
This interface is applicable for data integration API, read Api Push Process first
Scenario
- push master data to ODM after GSM's confirmation
push address
- API
Environment | URL |
---|---|
Test | https://``/odm/master_data_pool |
Prod | https://``/odm/master_data_pool |
Frequency | Time | Data amount |
---|---|---|
real time | Any time | Incremental |
Request data description
Param | Key | Type | Required | Length | Description |
---|---|---|---|---|---|
origin_batch_id | Y | String | Y | 50 | original batch_id |
bu | Y | String | Y | 50 | business unit |
odm | Y | String | Y | 100 | ODM name |
commodity | Y | String | Y | 50 | commodity |
ee_category | String | 50 | EE-IC category | ||
lenovo_pn | String | Y | 55 | Lenovo part number | |
odm_pn | Y | String | Y | 20 | ODM part number |
lead_time | Integer | Y | 10 | lead time | |
moq | Integer | Y | 10 | minimum order number | |
mpq | Integer | Y | 10 | minimum package number | |
odm_supplier_name | Y | String | Y | 100 | supplier name |
share_split | Number | Y | 1.2 | share split | |
ncnr_window | Integer | Y | 10 | The order cannot be canceled or rescheduled, and the window period (weeks); NCNR can be set according to the value. If LT 52 cannot be changed, the NCNR is 52. If it can be canceled, the NCNR is 0, which means there is no NCNR window, or the specific NCNR window is a few weeks. Leave it for a few weeks | |
production_lt | Integer | 10 | production weeks | ||
fab_factory | String | 100 | fab factory | ||
fab_location | String | 100 | fab location | ||
fab_technical | String | 150 | (xx nm)technical | ||
wafer_size | String | 10 | size(8"/12") | ||
assembly_test_factory | String | 100 | assembly factory | ||
assembly_test_location | String | 20 | assembly factory location | ||
package_method | String | 50 | package method | ||
package_size | String | 100 | package size | ||
fab_2_location | String | 100 | 2nd source fab location | ||
assembly_test_2_lodation | String | 100 | 2nd source assembly location | ||
distributor | String | 100 | Agent (Y/N) |
Response data description
Param | Type | Description |
---|---|---|
code | String | 0: success, others:failed |
msg | String | the detail message, especially useful on failure |
Request sample
json
{
"batch_id": "10097",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [
{
"origin_batch_id": "20230821001001",
"bu":"ThinkNB",
"odm":"LCFC",
"commodity": "Keyboard",
"ee_category": "",
"lenovo_pn":"SN21D68549",
"odm_pn":"PK132AS2A04",
"lead_time":"13",
"moq":"120",
"mpq":"120",
"odm_supplier_name":"JLON2LITE-ON SINGAPORE PTE LTD.",
"share_split":"1",
"ncnr_window":"0",
"production_lt":"0",
"fab_factory":"N/A",
"fab_location":"N/A",
"fab_technical":"0",
"wafer_size":"0",
"assembly_test_factory":"N/A",
"assembly_test_location":"N/A",
"package_method":"N/A",
"package_size":"N/A",
"fab_2_location":"N/A",
"assembly_test_2_lodation":"N/A",
"distributor":"N/A"
}
]
}
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"
}]
}]
}