Skip to content

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
EnvironmentURL
Testhttps://``/odm/master_data_pool
Prodhttps://``/odm/master_data_pool
FrequencyTimeData amount
real timeAny timeIncremental

Request data description

ParamKeyTypeRequiredLengthDescription
origin_batch_idYStringY50original batch_id
buYStringY50business unit
odmYStringY100ODM name
commodityYStringY50commodity
ee_categoryString50EE-IC category
lenovo_pnStringY55Lenovo part number
odm_pnYStringY20ODM part number
lead_timeIntegerY10lead time
moqIntegerY10minimum order number
mpqIntegerY10minimum package number
odm_supplier_nameYStringY100supplier name
share_splitNumberY1.2share split
ncnr_windowIntegerY10The 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_ltInteger10production weeks
fab_factoryString100fab factory
fab_locationString100fab location
fab_technicalString150(xx nm)technical
wafer_sizeString10size(8"/12")
assembly_test_factoryString100assembly factory
assembly_test_locationString20assembly factory location
package_methodString50package method
package_sizeString100package size
fab_2_locationString1002nd source fab location
assembly_test_2_lodationString1002nd source assembly location
distributorString100Agent (Y/N)

Response data description

ParamTypeDescription
codeString0: success, others:failed
msgStringthe 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"
        }]
    }]
}