Skip to content

CPSP_KQ_LARGE_CMT

This interface is applicable for data query API, read Api Query Process first

Request address

  • API
EnvironmentURL
Testhttps://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/query/gspldt_scpomgr/cpsp_kq_large_cmt
Prodhttps://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/query/gspldt_scpomgr/cpsp_kq_large_cmt

Request data description

ParamTypeRequiredDescription
pageNoIntegerYpage number
pageSizeIntegerYpage size

Response data description

ParamTypeLengthDescription
versionString2version 01-31
run_numberString2run number,01-02,01 morning,02 afternoon
salesorderidString50ICP Demand ID
project_nameString500project name
commodityString50Commodity
itemgroupString500item group
toitemString50MTM
tositeidString50Site
effstartdateDateyyyy-MM-dd
fcst_qtyNumber22Netted Fost aty
siteidString50Supply Site
cmt_dateDateSupply Cmt Date , Format:yyyy-MM-dd
cmt_qtyNumber22Supply Cmt qty
due_dateDateDmd Schedule date, Format:yyyy-MM-dd
priorityNumber22ICP Fcst priority
project_noString50project number
measureString50MTM measure
customer_segmentString100customer segment
product_segmentString100product segment
channelString100channel
biz_unitString100biz unit
orig_segmentString255customer segment + product segment +channel+ biz unit
cpsp_segmentString255cp match code
shortageString2shortage flag:Y/null
dmd_qtyNumber22
usageNumber22usgae=dmd_qty/fcst_qty
sys_created_byString200
sys_creation_dateDatetimeyyyy-MM-dd HH:mm:ss

Request sample

json
{
  "pageNo": 1,
  "pageSize": 10
}

Successful response sample

json
{
  "code": "0",
  "msg": "request success!",
  "result": {
    "total": 7449,
    "page_num": 1,
    "page_size": 10,
    "total_page": 745,
    "data": [
      {
        "commodity": "Planar",
        "channel": "COMMERCIAL",
        "tositeid": "9116",
        "project_name": "腾讯科技(北京)有限公司腾讯2022-2023年台机框架备料",
        "orig_segment": "COMMERCIAL|COMMERCIAL|COMMERCIAL|X",
        "shortage": "",
        "fcst_qty": 300,
        "sys_creation_date": "2023-11-28 11:45:30",
        "cmt_qty": 125,
        "siteid": "9116",
        "itemgroup": "cdb_MB_Q670",
        "cpsp_segment": "PRC|COMMERCIAL|COMMERCIAL|COMMERCIAL|X|QITIAN",
        "effstartdate": "2024-01-01",
        "sys_created_by": "",
        "due_date": "2024-01-12",
        "model_id": "df84f58f02a14c2f9be81bbfa73cd4cb",
        "priority": 30004435,
        "customer_segment": "COMMERCIAL",
        "version": "28",
        "dmd_qty": 300,
        "toitem": "11SKS04700",
        "biz_unit": "X",
        "measure": "MTM",
        "project_no": "A202306120000010",
        "cmt_date": "2024-01-12",
        "run_number": "01",
        "usage": 0.29,
        "salesorderid": "FCST-KQ99201072_000010-30004435",
        "product_segment": "COMMERCIAL"
      },
      ....
    ]
  }
}

Failed response sample

json
{
  "code": "-1",
  "msg": "system error!",
  "result": null
}