Skip to content

GR Data

This interface is applicable for data integration API, read Api Access Process first

frequencytimedata amount
Daily0:00 BJ TimeDaily version of data(Incremental)
  • API
EnvURL
testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/ems/gr
prdhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/ems/gr

business data description

ParameterkeyField TypeRequiredLengthDescriptionExample
buYStringY50Lenovo business unit, fixed values as shown in AppendixThinkNB
emsYStringY40EMS nameDIXON
ems_pnYStringY20EMS part numberBLXSB18C53808
ems_pn_descString100EMS part number description
lenovo_pnString18Lenovo part numberSB18C53808
material_typeString10SFG/BS/DS/DBBS
mfg_pnString200manufacturer Part Number
ems_poYStringY20purchase order number4521100014
ems_po_lineYStringY10purchase order line10
gr_qtyNumberY13,3goods received quantity100
gr_dateYDateYgoods received date2022-08-01
movement_typeYStringY20Return/GR/CANCELGR
ems_supplier_codeStringY20EMS supplier codeW121081473
ems_supplier_nameString100EMS supplier nameGOLD WIN TRADING (HK) LIMITED
ship_to_nameString100ship to plantDixon plant
grYStringY50gr batch ID13006451
gr_lineYStringY50gr batch line1
dnStringY50delivery note5911044531
dn_lineStringY50delivery note line1
versionStringY14Data cutoff time yyyyMMddHHmmss20220809070623
comment1String100
comment2String100

request sample

json
{
  "batch_id": "90497",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [
    {
      "gr": "13006451",
      "gr_line": "1",
      "bu": "ThinkNB",
      "ems": "DIXON",
      "ems_pn": "BLXSB18C53808",
      "ems_pn_desc": "",
      "lenovo_pn": "SB18C53808",
      "material_type": "BS",
      "mfg_pn": "",
      "ems_po": "4521100014",
      "ems_po_line": "10",
      "gr_qty": "100",
      "gr_date": "2022-08-01 ",
      "movement_type": "GR",
      "ems_supplier_code": "W121081473",
      "ems_supplier_name": "GOLD WIN TRADING (HK) LIMITED ",
      "ship_to_name": "",
      "dn": "5911044531",
      "dn_line": "1",
      "version": "20220809070623",
      "comment1": "",
      "comment2": ""
    }
  ]
}

success response sample

json
{
  "code": "0",
  "msg": "request success"
}

failed response sample

json
{
    "code": "E00V00",
    "msg": "data verification failed!",
    "result": [{
        "row": {
            "ems": "DIXON",
            ...
        },
        "verify": [{
            "type": "value length exceed",
            "fields": "version"
        }]
    }]
}