ORDER_EXEC_STATUS 数据
以下接口适用于 通用数据集成
请求地址
- API
环境 | URL |
---|---|
测试 | https://api-cn-t.lenovo.com/uat/v1.0/supply_chain/scc/open_platform/data/sync/pr/order_exec_status |
正式 | https://api-cn.lenovo.com/v1.0/supply_chain/scc/open_platform/data/sync/pr/order_exec_status |
请求参数
字段 | KEY | 类型 | 必填 | 长度 | Sample | 备注 | 报表字段 |
---|---|---|---|---|---|---|---|
mandt | String | 3 | 128 | 系统字段 | |||
ips_id | String | 20 | IPS24010508 | Data refresh time. For ODM data, put LCFC version. (版本号) | |||
po | String | Y | 15 | 7524030388 | PO号 | PO | |
po_line | String | Y | 12 | 10 | PO行号 | PO_LINE | |
site | String | Y | 20 | LCFC | Plant information 工厂 | SITE | |
run_date | String | Y | 8 | 20240105 | 格式:YYYYMMDD | RUNNING_TIME | |
so | String | Y | 16 | 4644314352 | SO号 | SO_ID | |
so_line | String | Y | 12 | 10 | SO行号 | SO_LINE | |
prsdat | String | 8 | 20231130 | Real salel order creation date,格式:YYYYMMDD | ORDER_DATE | ||
sysdt | String | Y | 8 | 20231130 | MFG SO creation date,格式:YYYYMMDD | RELEASE_DATE | |
lrsd | String | 8 | 20240115 | CPDATE,格式:YYYYMMDD | CP_DATE | ||
custseg | String | Y | 70 | E-COMM | Segment 信息,值为:GA/WEB | SEGMENT | |
prodc | String | Y | 12 | MOB | BRAND | ||
order_type | String | Y | 20 | Customer order | 订单类型,值为:Customer order / replenishment order | ORDER_TYPE | |
geo | String | 10 | AP | Geo information of real SO | GEO | ||
subgeo | String | 32 | JAPAN | Subgeo information of real SO | SUBGEO | ||
qty | Integer | Y | 10 | 1 | SO total qty | ORDER_QTY | |
line_qty | Integer | Y | 10 | 1 | Scheduled qty base MR date | PLANNED_QTY | |
mrday | String | Y | 8 | 20240331 | Supply的日期,格式:YYYYMMDD | MR_DATE | |
gatting | String | 100 | AM2Q8000J00 | Gating Part Number | GATING_PART | ||
pr_pn | String | 40 | AC60001K920 | PR order PN | PR_PN_ITEMGROUP | ||
pegqty | Number | Y | 10,3 | 0.000 | PEG数量 | PR_PEG_QTY | |
stock_date | String | 8 | 20240330 | Supply date of Gating Part,格式:YYYYMMDD | SUPPLY_DATE | ||
mrtyp | String | Y | 10 | ETA | ODM的占料类型,值为:TBD or ETA | SUPPLY_SOURCE | |
shortage_qty | Integer | 10 | 1 | 报缺数量 | |||
odm | String | Y | 200 | LCFC | |||
gating_sbb | String | 2000 | SBB1B66714 | 缺少的SBB号 | GATING_SBB | ||
peg_pr_order | String | 50 | PR2023090881902 | PR号 | PEG_PR_ORDER | ||
mtm | String | 40 | 21MDS0N118 | 成品料号 | |||
cto_fss_odm | String | 10 | FSS | FSS标志 |
响应参数
参数 | 类型 | 是否必填 | 描述 |
---|---|---|---|
code | String | Y | 0 成功其它失败 |
msg | String | Y | 响应具体信息 |
请求示例
json
{
"batch_id": "1",
"batch_size": 1,
"seq_id": "1",
"seq_size": 1,
"data": [{
"mandt": "103",
"ips_id": "demo ips_id",
"po": "demo po",
"po_line": "demo po_line",
"site": "LCFC",
"run_date": "20231013",
"so": "demo so",
"so_line": "demo so_line",
"prsdat": "20231203",
"sysdt": "20231023",
"lrsd": "20231011",
"custseg": "demo custseg",
"prodc": "demo prodc",
"order_type": "demo order_type",
"geo": "demo geo",
"subgeo": "demo subgeo",
"qty": "1",
"line_qty": "1",
"mrday": "20231012",
"gatting": "demo gatting",
"pr_pn": "demo pr_pn",
"pegqty": "1",
"stock_date": "20230910",
"mrtyp": "20231033",
"shortage_qty": "1",
"odm": "WISTRON",
"gating_sbb": "SBB1B66714",
"peg_pr_order": "PR2023090881902"
}]
}
响应示例
json
{
"code": "0",
"msg": "request success"
}
异常示例
json
{
"code": "E00V00",
"msg": "data verification failed!",
"result": [{
"row": {
"odm": "COMPAL",
...
},
"verify": [{
"type": "value length exceed",
"fields": "version"
}]
}]
}