Skip to content

EXPANSION_TO_PARTS data

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

Request address

  • API
EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/pr/expansion_to_parts
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/pr/expansion_to_parts

Request data description

ParamKEYTypeRequiredLengthExampleDescriptionReport field
siteStringY20COMPALPlant,Eg.WISTRONSITE
running_timeDateY820231107running time,Eg.YYYMMDDRunning Time
pr_creation_dateDate820231014SBB PR order creation date. Rormat:YYYYMMDDPR creation Date
start_dateDateY820240101SBB PR order start date. Format:YYYYMMDDStart date
sbb_pr_orderString20PR2023101397223SBB PR order numberSBB PR Order
sbb_noStringY2000SBB1B66714SBB Part number.SBB NO.
sbb_typeStringY20BASE2SBB typeSBB TYPE
brandStringY10TNBBrandBRAND
segmentStringY20WEBSegment:ECOMM OR NPISEGMENT
ttl_dmd_qtyIntegerY156SBB PR QtyTTL DMD QTY
required_dateDateY820240101SBB PR Required date ,Format: YYYYMMDDREQUIRED DATE
expired_dateDate820240317SBB PR expired date,Format: YYYYMMDDEXPIRED DATE
cp_dateDateY820240101SBB PR CP date, Format: YYYYMMDDCP DATE
netted_qtyIntegerY150LCFC/Compal should be netted Qty by SBB. LSSC/Wistron should be netted Qty by item group.Netted Qty
pr_togo_qtyIntegerY156LCFC/Compal should be SBB PR to-go qty.LSSC/Wistron should be Item group PR to-go qtyIt is TTL DMD QTY-Netted QtyPR_TOGO_QTY
sub_pr_orderString20030LCFC/Compal sub PR Order numberSub PR Order
pn_pngrpStringY3630Component level PNPN/PNGRP
partsString1000X66AW41202R/X66AW41202QPart Number underneath PN GroupParts
pn_descStringY200ACCY KITS SD11N42577 AUO 16WQX LY591Part number description.PN Description
lnv_pnString2000SBB1M86718Corresponding Lenovo PNLenovo_PN
pn_pr_togo_qtyIntegerY1534PR_TOGO_QTY translated to PN base BOMPN_PR_TOGO_QTY
mo_consum_qtyIntegerY150MO generated use PR supply.MO_CONSUMPTION
pr_res_qtyIntegerY159deduct MO consumptionPR_RES_QTY
pr_peg_qtyIntegerY150PR_PEG_QTY
pr_togo_res_qtyIntegerY1534For LCFC/Compal, it should be PN_TOGO_QTY - MO Consumption ,  The quantity is  to reserve inventory or ETA.For LSSC/Wistron, It equals to PN_PR_TOGO_QTY.PR_TOGO_RESERVE
supply_qtyIntegerY159Specific supply qty reserved base supply source and supply dateSupply Qty
supply_dateDateY820240203Reserved supply date,Format:YYYYMMDDSupply Date
supply_sourceStringY10ETAOn-hand reserved or future eta.Supply Source
statusString10ACTIVE/EXPIREDOnly for CompalStatus
most_gating_part_1String80SBG0W61980MOST_GATING_PART_1
most_gating_part_1_descString80PCBA MB NMF362 LS69C ULT7155H40V6GD16G_OMOST_GATING_PART_1_DESC
most_gating_part_2String80MOST_GATING_PART_2
most_gating_part_2_descString80MOST_GATING_PART_2_DESC
most_gating_part_3String80MOST_GATING_PART_3
most_gating_part_3_descString80MOST_GATING_PART_3_DESC
familyString1000
pr_modeString10Y2CD的标志
keypr_flagString10SBBPR方式的标志
odmStringN20COMPALCOMPAL/WISTRONWISTRON

Response data description

ParamTypeRequiredDescription
codeStringY0:successful, other:failed
msgStringYmessage

Request sample

json
{
  "batch_id": "1",
  "batch_size": 1,
  "seq_id": "1",
  "seq_size": 1,
  "data": [{
    "site": "COMPAL",
    "running_time": "20231107",
    "pr_creation_date": "20231014",
    "start_date": "20240101",
    "sbb_pr_order": "PR2023101397223",
    "sbb_no": "SBB1B66714",
    "sbb_type": "BASE2",
    "brand": "TNB",
    "segment": "WEB",
    "ttl_dmd_qty": "6",
    "required_date": "20240101",
    "expired_date": "20240317",
    "cp_date": "20240101",
    "netted_qty": "0",
    "pr_togo_qty": "6",
    "sub_pr_order": "30",
    "pn_pngrp": "30",
    "parts": "X66AW41202R/X66AW41202Q",
    "pn_desc": "ACCY KITS SD11N42577 AUO 16WQX LY591",
    "lnv_pn": "SBB1M86718",
    "pn_pr_togo_qty": "34",
    "mo_consum_qty": "0",
    "pr_res_qty": "9",
    "pr_peg_qty": "0",
    "pr_togo_res_qty": "34",
    "supply_qty": "9",
    "supply_date": "20240203",
    "supply_source": "ETA",
    "status": "ACTIVE",
    "most_gating_part_1": "SBG0W61980",
    "most_gating_part_1_desc": "PCBA MB NMF362 LS69C ULT7155H40V6GD16G_O",
    "most_gating_part_2": "",
    "most_gating_part_2_desc": "",
    "most_gating_part_3": "",
    "most_gating_part_3_desc": "",
    "family": ""
  }]
}

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"
    }]
  }]
}